Skip to content

Commit

Permalink
Add PyIter_Next error check in frameobject.c`
Browse files Browse the repository at this point in the history
  • Loading branch information
WolframAlph committed Dec 23, 2024
1 parent 9f65b09 commit 992aff1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Objects/frameobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,11 @@ framelocalsproxy_merge(PyObject* self, PyObject* other)

Py_DECREF(iter);

/* Check if loop ended because of exception in PyIter_Next */
if (PyErr_Occurred()) {
return -1;
}

return 0;
}

Expand Down

0 comments on commit 992aff1

Please sign in to comment.