Unverified Kaydet (Commit) e76daebc authored tarafından INADA Naoki's avatar INADA Naoki Kaydeden (comit) GitHub

bpo-32571: Fix reading uninitialized memory (GH-5332)

Reported by Coverity Scan.
üst 4112c5b9
......@@ -917,6 +917,11 @@ _PyObject_LookupAttr(PyObject *v, PyObject *name, PyObject **result)
}
*result = (*tp->tp_getattr)(v, (char *)name_str);
}
else {
*result = NULL;
return 0;
}
if (*result != NULL) {
return 1;
}
......
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