aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Python/generated_cases.c.h
diff options
context:
space:
mode:
authorBrandt Bucher <brandtbucher@microsoft.com>2024-01-04 03:14:15 -0800
committerGitHub <noreply@github.com>2024-01-04 11:14:15 +0000
commit35ef8cb25917bfd6cbbd7c2bb55dd4f82131c9cf (patch)
tree9d24a2320bdc98d8038ad1bdb670a145049684a1 /Python/generated_cases.c.h
parent4c4b08dd2bd5f2cad4e41bf29119a3daa2956f6e (diff)
downloadcpython-35ef8cb25917bfd6cbbd7c2bb55dd4f82131c9cf.tar.gz
cpython-35ef8cb25917bfd6cbbd7c2bb55dd4f82131c9cf.zip
GH-113689: Fix broken handling of invalid executors (GH-113694)
Diffstat (limited to 'Python/generated_cases.c.h')
-rw-r--r--Python/generated_cases.c.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/generated_cases.c.h b/Python/generated_cases.c.h
index 99fd169ca4f..8226d827cde 100644
--- a/Python/generated_cases.c.h
+++ b/Python/generated_cases.c.h
@@ -2392,11 +2392,12 @@
stack_pointer = _PyFrame_GetStackPointer(frame);
}
else {
+ code->co_executors->executors[oparg & 255] = NULL;
opcode = this_instr->op.code = executor->vm_data.opcode;
this_instr->op.arg = executor->vm_data.oparg;
oparg = (oparg & (~255)) | executor->vm_data.oparg;
- code->co_executors->executors[oparg&255] = NULL;
Py_DECREF(executor);
+ next_instr = this_instr;
DISPATCH_GOTO();
}
DISPATCH();