-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
Open
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-crashA hard crash of the interpreter, possibly with a core dumpA hard crash of the interpreter, possibly with a core dump
Description
In some cases type->tp_mro can be NULL and the new_mro variable can get a null value from the lookup_tp_mro call in the mro_hierarchy function.
Line 1654 in 5f50541
PyObject *new_mro = lookup_tp_mro(type); |
In this case, there may be problems with calling the Py_NewRef and the Py_DECREF functions.
Line 1658 in 5f50541
tuple = PyTuple_Pack(3, type, new_mro, old_mro); |
Line 1661 in 5f50541
tuple = PyTuple_Pack(2, type, new_mro); |
Line 1674 in 5f50541
Py_DECREF(new_mro); |
Linked PRs
Metadata
Metadata
Assignees
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-crashA hard crash of the interpreter, possibly with a core dumpA hard crash of the interpreter, possibly with a core dump