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

bpo-38610: Fix possible crashes in several list methods #17022

Merged
merged 3 commits into from Dec 30, 2019

Conversation

ZackerySpytz
Copy link
Contributor

@ZackerySpytz ZackerySpytz commented Oct 31, 2019

Hold strong references to list elements while calling
PyObject_RichCompareBool().

https://bugs.python.org/issue38610

Hold strong references to list elements while calling
PyObject_RichCompareBool().
Objects/listobject.c Show resolved Hide resolved
Copy link
Member

@pablogsal pablogsal left a comment

LGTM

Lib/test/test_list.py Outdated Show resolved Hide resolved
@miss-islington
Copy link
Contributor

miss-islington commented Dec 30, 2019

Thanks @ZackerySpytz for the PR, and @pablogsal for merging it 🌮🎉.. I'm working now to backport this PR to: 3.7, 3.8.
🐍🍒🤖

@pablogsal
Copy link
Member

pablogsal commented Dec 30, 2019

Thanks @ZackerySpytz for the quick fix!

@bedevere-bot
Copy link

bedevere-bot commented Dec 30, 2019

GH-17758 is a backport of this pull request to the 3.8 branch.

@miss-islington
Copy link
Contributor

miss-islington commented Dec 30, 2019

Sorry, @ZackerySpytz and @pablogsal, I could not cleanly backport this to 3.7 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker d9e561d23d994e3ed15f4fcbd7ee5c8fe50f190b 3.7

pablogsal pushed a commit to pablogsal/cpython that referenced this pull request Dec 30, 2019
…GH-17022)

Hold strong references to list elements while calling PyObject_RichCompareBool()..
(cherry picked from commit d9e561d)

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

bedevere-bot commented Dec 30, 2019

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

miss-islington added a commit that referenced this pull request Dec 30, 2019
Hold strong references to list elements while calling PyObject_RichCompareBool().
(cherry picked from commit d9e561d)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
pablogsal added a commit that referenced this pull request Dec 30, 2019
…) (GH-17759)

Hold strong references to list elements while calling PyObject_RichCompareBool()..
(cherry picked from commit d9e561d)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
corona10 pushed a commit to corona10/cpython that referenced this pull request Jan 27, 2020
Hold strong references to list elements while calling PyObject_RichCompareBool().
shihai1991 pushed a commit to shihai1991/cpython that referenced this pull request Jan 31, 2020
Hold strong references to list elements while calling PyObject_RichCompareBool().
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants