mirror of
https://github.com/python/cpython.git
synced 2025-10-17 20:28:43 +00:00
GH-128563: Don't leave frame->lltrace uninitialized (GH-129417)
This commit is contained in:
parent
828b27680f
commit
41ad2bb248
2 changed files with 8 additions and 0 deletions
|
@ -215,6 +215,9 @@ _PyFrame_Initialize(
|
|||
frame->return_offset = 0;
|
||||
frame->owner = FRAME_OWNED_BY_THREAD;
|
||||
frame->visited = 0;
|
||||
#ifdef Py_DEBUG
|
||||
frame->lltrace = 0;
|
||||
#endif
|
||||
|
||||
for (int i = null_locals_from; i < code->co_nlocalsplus; i++) {
|
||||
frame->localsplus[i] = PyStackRef_NULL;
|
||||
|
@ -398,6 +401,9 @@ _PyFrame_PushTrampolineUnchecked(PyThreadState *tstate, PyCodeObject *code, int
|
|||
#endif
|
||||
frame->owner = FRAME_OWNED_BY_THREAD;
|
||||
frame->visited = 0;
|
||||
#ifdef Py_DEBUG
|
||||
frame->lltrace = 0;
|
||||
#endif
|
||||
frame->return_offset = 0;
|
||||
|
||||
#ifdef Py_GIL_DISABLED
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
Fix an issue where the "lltrace" debug feature could have been incorrectly
|
||||
enabled for some frames.
|
Loading…
Add table
Add a link
Reference in a new issue