From: Christian Heimes Date: Sat, 20 Jul 2013 13:12:09 +0000 (+0200) Subject: Add missing check of PyDict_Update()'s return value in _elementtree.c X-Git-Tag: v3.4.0a1~132^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7ed4294d7f821a0733ab47285317f06a8c51e5db;p=thirdparty%2FPython%2Fcpython.git Add missing check of PyDict_Update()'s return value in _elementtree.c CID 719637 --- diff --git a/Modules/_elementtree.c b/Modules/_elementtree.c index 9789527c39a6..c179e965da5e 100644 --- a/Modules/_elementtree.c +++ b/Modules/_elementtree.c @@ -347,7 +347,8 @@ get_attrib_from_keywords(PyObject *kwds) Py_DECREF(attrib_str); if (attrib) - PyDict_Update(attrib, kwds); + if (PyDict_Update(attrib, kwds) < 0) + return NULL; return attrib; }