mirror of
https://github.com/python/cpython.git
synced 2025-09-04 07:51:13 +00:00
[3.13] gh-128198: Add missing error checks for usages of PyIter_Next() (GH-128199) (GH-128272)
(cherry picked from commit 5c814c83cd
)
Co-authored-by: Yan Yanchii <yyanchiy@gmail.com>
This commit is contained in:
parent
32adae1a10
commit
c30cad0638
2 changed files with 8 additions and 0 deletions
|
@ -141,6 +141,10 @@ namespace_repr(PyObject *ns)
|
|||
goto error;
|
||||
}
|
||||
|
||||
if (PyErr_Occurred()) {
|
||||
goto error;
|
||||
}
|
||||
|
||||
separator = PyUnicode_FromString(", ");
|
||||
if (separator == NULL)
|
||||
goto error;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue