mirror of
https://github.com/python/cpython.git
synced 2025-08-27 04:05:34 +00:00
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>
This commit is contained in:
parent
42e3a8410b
commit
c0661df42a
5 changed files with 32 additions and 4 deletions
6
Python/generated_cases.c.h
generated
6
Python/generated_cases.c.h
generated
|
@ -3265,7 +3265,11 @@
|
|||
assert(_PyOpcode_Deopt[opcode] == (CALL));
|
||||
JUMP_TO_PREDICTED(CALL);
|
||||
}
|
||||
assert(self_o != NULL);
|
||||
if (self_o == NULL) {
|
||||
UPDATE_MISS_STATS(CALL);
|
||||
assert(_PyOpcode_Deopt[opcode] == (CALL));
|
||||
JUMP_TO_PREDICTED(CALL);
|
||||
}
|
||||
if (!PyList_Check(self_o)) {
|
||||
UPDATE_MISS_STATS(CALL);
|
||||
assert(_PyOpcode_Deopt[opcode] == (CALL));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue