mirror of
https://github.com/python/cpython.git
synced 2026-05-08 11:31:13 +00:00
[3.14] gh-148208: Fix recursion depth leak in PyObject_Print (GH-148209) (#148412)
gh-148208: Fix recursion depth leak in `PyObject_Print` (GH-148209)
(cherry picked from commit e2fa10e04d)
Co-authored-by: Wulian233 <1055917385@qq.com>
This commit is contained in:
parent
a4f9bbf5b8
commit
a9d122fb05
2 changed files with 3 additions and 0 deletions
|
|
@ -0,0 +1 @@
|
|||
Fix recursion depth leak in :c:func:`PyObject_Print`
|
||||
|
|
@ -686,6 +686,8 @@ PyObject_Print(PyObject *op, FILE *fp, int flags)
|
|||
ret = -1;
|
||||
}
|
||||
}
|
||||
|
||||
_Py_LeaveRecursiveCall();
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue