mirror of
https://github.com/python/cpython.git
synced 2025-07-18 16:55:20 +00:00
[3.13] gh-132011: Fix crash on invalid CALL_LIST_APPEND
deoptimization (GH-132018) (#132161)
* [3.13] gh-132011: Fix crash on invalid `CALL_LIST_APPEND` deoptimization (GH-132018)
(cherry picked from commit c0661df42a
)
Co-authored-by: sobolevn <mail@sobolevn.me>
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
This commit is contained in:
parent
83070aa108
commit
5fb9fe0e3e
4 changed files with 25 additions and 2 deletions
|
@ -3631,7 +3631,7 @@ dummy_func(
|
|||
assert(oparg == 1);
|
||||
PyInterpreterState *interp = tstate->interp;
|
||||
DEOPT_IF(callable != interp->callable_cache.list_append);
|
||||
assert(self != NULL);
|
||||
DEOPT_IF(self == NULL);
|
||||
DEOPT_IF(!PyList_Check(self));
|
||||
STAT_INC(CALL, hit);
|
||||
if (_PyList_AppendTakeRef((PyListObject *)self, arg) < 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue