mirror of
https://github.com/python/cpython.git
synced 2025-07-28 05:34:31 +00:00
Fix some missing checks after PyTuple_New, PyList_New, PyDict_New
This commit is contained in:
parent
a5a0704942
commit
5c170fd4a9
7 changed files with 27 additions and 7 deletions
|
@ -615,6 +615,7 @@ tuplesubscript(PyTupleObject* self, PyObject* item)
|
|||
}
|
||||
else {
|
||||
result = PyTuple_New(slicelength);
|
||||
if (!result) return NULL;
|
||||
|
||||
src = self->ob_item;
|
||||
dest = ((PyTupleObject *)result)->ob_item;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue