pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/python/cpython/commit/50efd7db20a3073affd877ecd2edd1dcf2a2c8b9

"stylesheet" href="https://github.githubassets.com/assets/global-d18f184ea1a06a2c.css" /> [3.11] gh-113842: Add missing error check for PyIter_Next() in Python… · python/cpython@50efd7d · GitHub
Skip to content

Commit 50efd7d

Browse files
[3.11] gh-113842: Add missing error check for PyIter_Next() in Python/symtable.c (GH-113843) (GH-113852)
(cherry picked from commit fda901a) Co-authored-by: Yan Yanchii <yyanchiy@gmail.com>
1 parent f20c692 commit 50efd7d

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Python/symtable.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -728,6 +728,12 @@ update_symbols(PyObject *symbols, PyObject *scopes,
728728
}
729729
Py_DECREF(name);
730730
}
731+
732+
/* Check if loop ended because of exception in PyIter_Next */
733+
if (PyErr_Occurred()) {
734+
goto error;
735+
}
736+
731737
Py_DECREF(itr);
732738
Py_DECREF(v_free);
733739
return 1;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy