gh-128198: Add missing error checks for usages of PyIter_Next() (GH-1… · python/cpython@5c814c8 · GitHub
Skip to content

Commit 5c814c8

Browse files
authored
gh-128198: Add missing error checks for usages of PyIter_Next() (GH-128199)
1 parent 81636d3 commit 5c814c8

3 files changed

Lines changed: 21 additions & 0 deletions

File tree

Modules/_asynciomodule.c

Lines changed: 13 additions & 0 deletions

Objects/frameobject.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,10 @@ framelocalsproxy_merge(PyObject* self, PyObject* other)
264264

265265
Py_DECREF(iter);
266266

267+
if (PyErr_Occurred()) {
268+
return -1;
269+
}
270+
267271
return 0;
268272
}
269273

Objects/namespaceobject.c

Lines changed: 4 additions & 0 deletions

0 commit comments

Comments
 (0)