diff options
author | Mark Shannon <mark@hotpy.org> | 2023-03-20 14:42:15 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-20 14:42:15 +0000 |
commit | d149f15d637a323ac818a7fa719cad945828a04b (patch) | |
tree | ffcf34be95a34e68ba2c967ba15ee07fde190486 /Python | |
parent | 98833563e25c2b9bafce9f9dd1579f169f921ed7 (diff) | |
download | cpython3-d149f15d637a323ac818a7fa719cad945828a04b.tar.gz |
[3.11] gh-101975: Fixed a potential SegFault on garbage collection (GH-102803) (GH-102807)
Authored-by: gaogaotiantian <gaogaotiantian@hotmail.com>
Diffstat (limited to 'Python')
-rw-r--r-- | Python/ceval.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index 96d215aba8..72f9c8375d 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -1536,6 +1536,7 @@ eval_frame_handle_pending(PyThreadState *tstate) _PyFrame_SetStackPointer(frame, stack_pointer); \ int err = trace_function_entry(tstate, frame); \ stack_pointer = _PyFrame_GetStackPointer(frame); \ + frame->stacktop = -1; \ if (err) { \ goto error; \ } \ |