Kaydet (Commit) 2ef710e4 authored tarafından Christian Heimes's avatar Christian Heimes

Add missing check of PyDict_Update()'s return value in _elementtree.c

CID 719637
......@@ -310,7 +310,8 @@ get_attrib_from_keywords(PyObject *kwds)
/* attrib can be NULL if PyDict_New failed */
if (attrib)
PyDict_Update(attrib, kwds);
if (PyDict_Update(attrib, kwds) < 0)
return NULL;
return attrib;
}
......
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