summaryrefslogtreecommitdiffstats
path: root/Python/bytecodes.c
diff options
context:
space:
mode:
authorsobolevn <mail@sobolevn.me>2025-04-06 16:10:39 (GMT)
committerGitHub <noreply@github.com>2025-04-06 16:10:39 (GMT)
commitc0661df42ad20e488dbfa3e0fec22462833fc3d6 (patch)
tree1204066148f6a18700ee38b89b43e94062bc77a4 /Python/bytecodes.c
parent42e3a8410b7dbc960b3b7c335f2bbb516c8caf6e (diff)
downloadcpython-c0661df42ad20e488dbfa3e0fec22462833fc3d6.zip
cpython-c0661df42ad20e488dbfa3e0fec22462833fc3d6.tar.gz
cpython-c0661df42ad20e488dbfa3e0fec22462833fc3d6.tar.bz2
gh-132011: Fix crash on invalid `CALL_LIST_APPEND` deoptimization (#132018)
Co-authored-by: Victor Stinner <vstinner@python.org> Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Diffstat (limited to 'Python/bytecodes.c')
-rw-r--r--Python/bytecodes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/bytecodes.c b/Python/bytecodes.c
index a6cdc08..d17cac2 100644
--- a/Python/bytecodes.c
+++ b/Python/bytecodes.c
@@ -4235,7 +4235,7 @@ dummy_func(
PyInterpreterState *interp = tstate->interp;
DEOPT_IF(callable_o != interp->callable_cache.list_append);
- assert(self_o != NULL);
+ DEOPT_IF(self_o == NULL);
DEOPT_IF(!PyList_Check(self_o));
DEOPT_IF(!LOCK_OBJECT(self_o));
STAT_INC(CALL, hit);