Skip to content

Conversation

@miss-islington
Copy link
Contributor

@miss-islington miss-islington commented May 1, 2020

Otherwise we leave a dangling pointer to free'd memory. If we
then initialize a new interpreter in the same process and call
PyImport_ExtendInittab, we will (likely) crash when calling
PyMem_RawRealloc(inittab_copy, ...) since the pointer address
is bogus.

Automerge-Triggered-By: @brettcannon
(cherry picked from commit 64224a4)

Co-authored-by: Gregory Szorc [email protected]

https://bugs.python.org/issue40412

Automerge-Triggered-By: @brettcannon

Otherwise we leave a dangling pointer to free'd memory. If we
then initialize a new interpreter in the same process and call
PyImport_ExtendInittab, we will (likely) crash when calling
PyMem_RawRealloc(inittab_copy, ...) since the pointer address
is bogus.

Automerge-Triggered-By: @brettcannon
(cherry picked from commit 64224a4)

Co-authored-by: Gregory Szorc <[email protected]>
@miss-islington
Copy link
Contributor Author

@indygreg: Status check is done, and it's a success ✅ .

2 similar comments
@miss-islington
Copy link
Contributor Author

@indygreg: Status check is done, and it's a success ✅ .

@miss-islington
Copy link
Contributor Author

@indygreg: Status check is done, and it's a success ✅ .

@miss-islington miss-islington merged commit 1205afb into python:3.8 May 1, 2020
@miss-islington miss-islington deleted the backport-64224a4-3.8 branch May 1, 2020 23:06
@miss-islington
Copy link
Contributor Author

Sorry, I can't merge this PR. Reason: Pull Request is not mergeable.

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.

5 participants