[issue37012] Possible crash due to PyType_FromSpecWithBases()

Petr Viktorin report at bugs.python.org
Wed May 22 10:04:10 EDT 2019


New submission from Petr Viktorin <encukou at gmail.com>:

If the PyObject_MALLOC() call failed in PyType_FromSpecWithBases(), PyObject_Free() would be called on a static string in type_dealloc().

Fixed by Zackery Spytz in pull request 10304. I'm opening the issue retroactively.

----------
messages: 343194
nosy: petr.viktorin
priority: normal
severity: normal
status: open
title: Possible crash due to PyType_FromSpecWithBases()
versions: Python 3.7, Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37012>
_______________________________________


More information about the Python-bugs-list mailing list