Skip to content

Commit c10bf91

Browse files
Fix invalid memory read in the ENTER_EXECUTOR
1 parent cce8cb3 commit c10bf91

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Python/bytecodes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3018,7 +3018,7 @@ dummy_func(
30183018
goto stop_tracing;
30193019
}
30203020
PyCodeObject *code = _PyFrame_GetCode(frame);
3021-
_PyExecutorObject *executor = code->co_executors->executors[oparg & 255];
3021+
_PyExecutorObject *executor = code->co_executors->executors[this_instr->op.arg];
30223022
assert(executor->vm_data.index == INSTR_OFFSET() - 1);
30233023
assert(executor->vm_data.code == code);
30243024
assert(executor->vm_data.valid);

Python/generated_cases.c.h

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)