◐ Shell
reader mode source ↗
Skip to content

bpo-31243: fix PyArg_ParseTuple failure checks#3171

Merged
serhiy-storchaka merged 6 commits into
python:masterfrom
orenmn:bpo31243-fix-PyArg_ParseTuple-failure-checks
Aug 29, 2017
Merged

bpo-31243: fix PyArg_ParseTuple failure checks#3171
serhiy-storchaka merged 6 commits into
python:masterfrom
orenmn:bpo31243-fix-PyArg_ParseTuple-failure-checks

Conversation

@orenmn

@orenmn orenmn commented Aug 21, 2017

Copy link
Copy Markdown
Contributor

according to http://bugs.python.org/issue31243, replace checks whether PyArg_ParseTuple returned a negative value with checks whether PyArg_ParseTuple returned 0.

while we are here, make sure the call to PyArg_ParseTuple in textiowrapper_read_chunk() won't cause producing a wrong error message, as explained in http://bugs.python.org/issue28261, or a SystemError.

https://bugs.python.org/issue31243

@orenmn orenmn changed the title bpo-31243 fix PyArg_ParseTuple failure checks Aug 21, 2017
@serhiy-storchaka

Copy link
Copy Markdown
Member

Please add also a NEWS.d entry. This change fixes bugs and the information about this can be important for end users.

@orenmn

orenmn commented Aug 24, 2017

Copy link
Copy Markdown
Contributor Author

please ignore this NEWS.d. it is not accurate. I would fix it soon.

@serhiy-storchaka serhiy-storchaka merged commit ba7d736 into python:master Aug 29, 2017
@serhiy-storchaka serhiy-storchaka added needs backport to 2.7 type-bug An unexpected behavior, bug, or error labels Aug 29, 2017
orenmn added a commit to orenmn/cpython that referenced this pull request Aug 29, 2017
@bedevere-bot

Copy link
Copy Markdown

GH-3233 is a backport of this pull request to the 3.6 branch.

@bedevere-bot

Copy link
Copy Markdown

GH-3235 is a backport of this pull request to the 2.7 branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants