mirror of https://github.com/python/cpython
Add missing check of PyDict_SetItem()'s return value in PyEval_EvalCodeEx()
CID 486647
This commit is contained in:
parent
14f5ee0a62
commit
0bd447f847
|
@ -3333,7 +3333,9 @@ PyEval_EvalCodeEx(PyObject *_co, PyObject *globals, PyObject *locals,
|
|||
keyword);
|
||||
goto fail;
|
||||
}
|
||||
PyDict_SetItem(kwdict, keyword, value);
|
||||
if (PyDict_SetItem(kwdict, keyword, value) == -1) {
|
||||
goto fail;
|
||||
}
|
||||
continue;
|
||||
kw_found:
|
||||
if (GETLOCAL(j) != NULL) {
|
||||
|
|
Loading…
Reference in New Issue