[3.11] gh-101975: Fixed a potential SegFault on garbage collection (GH-102803) (GH-102807)

Authored-by: gaogaotiantian <gaogaotiantian@hotmail.com>
This commit is contained in:
Mark Shannon 2023-03-20 14:42:15 +00:00 committed by GitHub
parent 98833563e2
commit d149f15d63
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View file

@ -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; \
} \