Skip to content

[3.7] bpo-37012 Fix a possible crash due to PyType_FromSpecWithBases() (GH-10304) #13495

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

Merged
merged 1 commit into from
May 29, 2019

Conversation

encukou
Copy link
Member

@encukou encukou commented May 22, 2019

If the PyObject_MALLOC() call failed in PyType_FromSpecWithBases(),
PyObject_Free() would be called on a static string in type_dealloc().
(cherry picked from commit 0613c1e)

Co-authored-by: Zackery Spytz [email protected]

https://bugs.python.org/issue37012

If the PyObject_MALLOC() call failed in PyType_FromSpecWithBases(),
PyObject_Free() would be called on a static string in type_dealloc().
(cherry picked from commit 0613c1e)

Co-authored-by: Zackery Spytz <[email protected]>
@ned-deily ned-deily changed the title [3.7] Fix a possible crash due to PyType_FromSpecWithBases() (GH-10304) [3.7] bpo-37012 Fix a possible crash due to PyType_FromSpecWithBases() (GH-10304) May 29, 2019
@ned-deily ned-deily merged commit 3708316 into 3.7 May 29, 2019
@ned-deily ned-deily deleted the backport-0613c1e-3.7 branch May 29, 2019 03:36
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