Skip to content

Commit a389fdb

Browse files
GH-96572: fix use after free in trace refs build mode (GH-96618)
(cherry picked from commit 6744490) Co-authored-by: Kumar Aditya <[email protected]>
1 parent 26dc4df commit a389fdb

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
@@ -44,7 +44,7 @@
4444
# error "ceval.c must be build with Py_BUILD_CORE define for best performance"
4545
#endif
4646

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

0 commit comments

Comments
 (0)