GH-96572: fix use after free in trace refs build mode (#96618)

This commit is contained in:
Kumar Aditya 2022-09-06 23:32:41 +05:30 committed by GitHub
parent 95e271b226
commit 67444902a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -0,0 +1 @@
Fix use after free in trace refs build mode. Patch by Kumar Aditya.

View file

@ -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.