summaryrefslogtreecommitdiffstats
path: root/Python/ceval.c
diff options
context:
space:
mode:
authorKumar Aditya <59607654+kumaraditya303@users.noreply.github.com>2022-09-06 18:02:41 (GMT)
committerGitHub <noreply@github.com>2022-09-06 18:02:41 (GMT)
commit67444902a0f10419a557d0a2d3b8675c31b075a9 (patch)
tree9eb2920e003915d0c0ae721701ab504028062dff /Python/ceval.c
parent95e271b2266b8f2e7b60ede86ccf3ede4a7f83eb (diff)
downloadcpython-67444902a0f10419a557d0a2d3b8675c31b075a9.zip
cpython-67444902a0f10419a557d0a2d3b8675c31b075a9.tar.gz
cpython-67444902a0f10419a557d0a2d3b8675c31b075a9.tar.bz2
GH-96572: fix use after free in trace refs build mode (#96618)
Diffstat (limited to 'Python/ceval.c')
-rw-r--r--Python/ceval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index c2fa908..971f6f1 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -46,7 +46,7 @@
# error "ceval.c must be build with Py_BUILD_CORE define for best performance"
#endif
-#ifndef Py_DEBUG
+#if !defined(Py_DEBUG) && !defined(Py_TRACE_REFS)
// GH-89279: The MSVC compiler does not inline these static inline functions
// in PGO build in _PyEval_EvalFrameDefault(), because this function is over
// the limit of PGO, and that limit cannot be configured.