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
[Skip Issue] Fix a possible decref of a borrowed reference in symtable.c #9786
Conversation
If it is a fix for possible interpreter crash -- please create an issue. |
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. |
GH-9799 is a backport of this pull request to the 3.7 branch. |
GH-9800 is a backport of this pull request to the 3.6 branch. |
Sorry, @ZackerySpytz and @serhiy-storchaka, I could not cleanly backport this to |
(cherry picked from commit fc439d2) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
(cherry picked from commit fc439d2) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
If
PyObject_GetIter()
fails inupdate_symbols()
,name
will be decrefed, butname
is a borrowed reference at this point.