]> granicus.if.org Git - python/commit
bpo-35766 follow-up: Add an error check to new_type_comment() (#11766)
authorGuido van Rossum <guido@python.org>
Mon, 11 Feb 2019 16:10:42 +0000 (08:10 -0800)
committerGitHub <noreply@github.com>
Mon, 11 Feb 2019 16:10:42 +0000 (08:10 -0800)
commit4b250fc1da9c893803cf724a4974450b5e10bd8a
treee9ba9f9cb68b8271ff85146593dd98493d2661d2
parent537b6caa565ec2fc304ba6f4400cd347ce2af64b
bpo-35766 follow-up: Add an error check to new_type_comment() (#11766)

If PyUnicode_DecodeUTF8() returns NULL, PyArena_AddPyObject() would crash.
Found by @msullivan for https://github.com/python/typed_ast/pull/93.
Python/ast.c