Closed
Description
Lines 1251 to 1285 in 4d8959b
This implemention doesn't take in account case when PyList_New
returns NULL
.
If PyList_New(0)
returns a NULL
, PyList_Append
will be failed with segfault, cause of Py_TYPE
, which will try to reach out ob_type
. of (PyObject *) NULL
.
This hard to reproduce, because the only way PyList_New
can error, if it is runs out of memory, but theoretically it can happen.