Commit 2a21687e authored by Christian Heimes's avatar Christian Heimes

Add missing check of PyDict_SetItem()'s return value in PyEval_EvalCodeEx()

CID 486647
parents a33d9c37 f6e7dfa6
......@@ -3461,7 +3461,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) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment