Browse Source

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

Reported by Coverity Scan.
pull/5340/head
INADA Naoki 8 years ago
committed by GitHub
parent
commit
e76daebc0c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      Objects/object.c

5
Objects/object.c

@ -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;
}

Loading…
Cancel
Save