Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Skip Issue] Fix a possible decref of a borrowed reference in symtable.c #9786

Merged

Conversation

ZackerySpytz
Copy link
Contributor

@ZackerySpytz ZackerySpytz commented Oct 10, 2018

If PyObject_GetIter() fails in update_symbols(), name will be decrefed, but name is a borrowed reference at this point.

@ZackerySpytz ZackerySpytz changed the title [Skip Issue] Fix a possible decrerf of a borrowed reference in symtable.c [Skip Issue] Fix a possible decref of a borrowed reference in symtable.c Oct 10, 2018
@asvetlov
Copy link
Contributor

If it is a fix for possible interpreter crash -- please create an issue.
The change is important enough to be tracked.

@miss-islington
Copy link
Contributor

Thanks @ZackerySpytz for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 2.7, 3.6, 3.7.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Oct 11, 2018
…H-9786)

(cherry picked from commit fc439d2)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
@bedevere-bot
Copy link

GH-9799 is a backport of this pull request to the 3.7 branch.

@bedevere-bot
Copy link

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

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Oct 11, 2018
…H-9786)

(cherry picked from commit fc439d2)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
@miss-islington
Copy link
Contributor

Sorry, @ZackerySpytz and @serhiy-storchaka, I could not cleanly backport this to 2.7 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker fc439d20de32b0ebccca79a96e31f83b85ec4eaf 2.7

@serhiy-storchaka serhiy-storchaka removed their assignment Oct 11, 2018
@serhiy-storchaka serhiy-storchaka added the type-bug An unexpected behavior, bug, or error label Oct 11, 2018
miss-islington added a commit that referenced this pull request Oct 11, 2018
(cherry picked from commit fc439d2)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
miss-islington added a commit that referenced this pull request Oct 11, 2018
(cherry picked from commit fc439d2)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip issue skip news type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants