Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6744490

Browse files
GH-96572: fix use after free in trace refs build mode (#96618)
1 parent 95e271b commit 6744490

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix use after free in trace refs build mode. Patch by Kumar Aditya.

Python/ceval.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
# error "ceval.c must be build with Py_BUILD_CORE define for best performance"
4747
#endif
4848

49-
#ifndef Py_DEBUG
49+
#if !defined(Py_DEBUG) && !defined(Py_TRACE_REFS)
5050
// GH-89279: The MSVC compiler does not inline these static inline functions
5151
// in PGO build in _PyEval_EvalFrameDefault(), because this function is over
5252
// the limit of PGO, and that limit cannot be configured.

0 commit comments

Comments
 (0)