Skip to content

[3.6] bpo-39453: Multiple backport patch for use after free with list and dict#18206

Closed
corona10 wants to merge 4 commits into
python:3.6from
corona10:bpo-39453-3.6
Closed

[3.6] bpo-39453: Multiple backport patch for use after free with list and dict#18206
corona10 wants to merge 4 commits into
python:3.6from
corona10:bpo-39453-3.6

Conversation

@corona10

@corona10 corona10 commented Jan 27, 2020

Copy link
Copy Markdown
Member

ZackerySpytz and others added 4 commits January 28, 2020 02:08
Hold strong references to list elements while calling PyObject_RichCompareBool().
pythonGH-17765)

* [3.7] bpo-38588: Fix possible crashes in dict and list when calling PyObject_RichCompareBool (pythonGH-17734)

Take strong references before calling PyObject_RichCompareBool to protect against the case
where the object dies during the call..
(cherry picked from commit 2d5bf56)

Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>

* methane's suggestion

methane's suggestion

Co-Authored-By: Inada Naoki <songofacandy@gmail.com>

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
@corona10

Copy link
Copy Markdown
Member Author

@pablogsal Please take a look in care, this backport patch is including the missing backport patch for 3.6

@corona10 corona10 changed the title bpo-39453: Multiple backport patch for use after free with list and dict [3.6] bpo-39453: Multiple backport patch for use after free with list and dict Jan 27, 2020
@pablogsal

Copy link
Copy Markdown
Member

Please, create two different PRs then. If we need to revert one of them we don't want to revert everything.

@corona10

Copy link
Copy Markdown
Member Author

@pablogsal Got it, I close this PR :)

@corona10 corona10 closed this Jan 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants