Crash report
remove_unused_consts in Python/flowgraph.c
When PyMem_Malloc(nconsts * sizeof(Py_ssize_t)); fails, we need to set an exception.
|
static int |
|
remove_unused_consts(basicblock *entryblock, PyObject *consts) |
|
{ |
|
assert(PyList_CheckExact(consts)); |
|
Py_ssize_t nconsts = PyList_GET_SIZE(consts); |
|
if (nconsts == 0) { |
|
return SUCCESS; /* nothing to do */ |
|
} |
|
|
|
Py_ssize_t *index_map = NULL; |
|
Py_ssize_t *reverse_index_map = NULL; |
|
int err = ERROR; |
|
|
|
index_map = PyMem_Malloc(nconsts * sizeof(Py_ssize_t)); |
|
if (index_map == NULL) { |
|
goto end; |
|
} |
Linked PRs
Crash report
remove_unused_constsinPython/flowgraph.cWhen
PyMem_Malloc(nconsts * sizeof(Py_ssize_t));fails, we need to set an exception.cpython/Python/flowgraph.c
Lines 3267 to 3283 in 29a920e
Linked PRs
PyErr_NoMemory()inremove_unused_consts#151127PyErr_NoMemory()inremove_unused_consts(GH-151127) #151134PyErr_NoMemory()inremove_unused_consts(GH-151127) #151135PyErr_NoMemory()inremove_unused_consts(GH-151127) #151136PyErr_NoMemory()instrong_cache_node_new#151137