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 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().
Copy link
Member

pablogsal left a comment

LGTM

Lib/test/test_list.py Outdated Show resolved Hide resolved
@pablogsal pablogsal merged commit d9e561d into python:master Dec 30, 2019
9 checks passed
9 checks passed
Docs
Details
Windows (x86)
Details
Windows (x64)
Details
macOS
Details
Ubuntu
Details
Azure Pipelines PR #20191230.12 succeeded
Details
bedevere/issue-number Issue number 38610 found
Details
bedevere/news News entry found in Misc/NEWS.d
continuous-integration/travis-ci/pr The Travis CI build passed
Details
@miss-islington

This comment has been minimized.

Copy link

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

This comment has been minimized.

Copy link
Member

pablogsal commented Dec 30, 2019

Thanks @ZackerySpytz for the quick fix!

@bedevere-bot

This comment has been minimized.

Copy link

bedevere-bot commented Dec 30, 2019

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

@miss-islington

This comment has been minimized.

Copy link

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 added 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

This comment has been minimized.

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
6 participants
You can’t perform that action at this time.