bpo-30640: Fix undefined behavior in _PyFunction_FastCallDict(), PyEval_EvalCodeEx()#2919
Merged
serhiy-storchaka merged 2 commits intoJul 31, 2017
Merged
Conversation
Member
|
@serhiy-storchaka: Can you please review the change? Does it do what do you want? |
Member
|
Yes, this change fixes an undefined behavior in But there is the same issue in |
93329cf to
994647a
Compare
serhiy-storchaka
approved these changes
Jul 31, 2017
Member
|
Do you mind to backport the changes to 3.6 @ZackerySpytz? This is not trivial since the code was refactored. |
ZackerySpytz
added a commit
to ZackerySpytz/cpython
that referenced
this pull request
Jul 31, 2017
… and PyEval_EvalCodeEx() (pythonGH-2919) k + 1 was calculated with k = NULL.. (cherry picked from commit c6ea897)
|
GH-2964 is a backport of this pull request to the 3.6 branch. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In
_PyFunction_FastCallDict(),kcan be set to NULL, and arithmetic on a null pointer is undefined behavior. There is the same issue inPyEval_EvalCodeEx().https://bugs.python.org/issue30640