Sitelet https://web.archive.org/web/20230920155720/https://github.com/python/typed_ast/pull/93
Skip to content
This repository has been archived by the owner on Jul 5, 2023. It is now read-only.

Check NEW_TYPE_COMMENT calls for failure #93

Merged
merged 1 commit into from Feb 6, 2019
Merged

Conversation

msullivan
Copy link
Collaborator

This is mostly cribbed from python/cpython#11645,
though it also adds a new error check to new_type_comment itself.

This is mostly cribbed from python/cpython#11645,
though it also adds a new error check to new_type_comment itself.
Copy link
Member

@gvanrossum gvanrossum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I'll submit a PR to add the extra error check to new_type_comment() upstream.

gvanrossum added a commit to python/cpython that referenced this pull request Feb 6, 2019
If PyUnicode_DecodeUTF8() returns NULL, PyArena_AddPyObject() would crash.
Found by @msullivan for python/typed_ast#93.
@gvanrossum gvanrossum merged commit f2acb2b into master Feb 6, 2019
@gvanrossum gvanrossum deleted the check-errors branch February 6, 2019 00:38
gvanrossum added a commit to python/cpython that referenced this pull request Feb 11, 2019
If PyUnicode_DecodeUTF8() returns NULL, PyArena_AddPyObject() would crash.
Found by @msullivan for python/typed_ast#93.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants