]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
GH-142629: JIT: Fix out of bounds memory read in lltrace (GH-142821)
authorMark Shannon <mark@hotpy.org>
Tue, 16 Dec 2025 19:57:15 +0000 (19:57 +0000)
committerGitHub <noreply@github.com>
Tue, 16 Dec 2025 19:57:15 +0000 (19:57 +0000)
JIT: Fix out of bounds memory read in lltrace

Python/optimizer.c

index 5a2cdb42194b8c882629e9581bb9587736ee543d..b215e43128fa2cf53db0f308c284b3eb65a9eee9 100644 (file)
@@ -356,7 +356,7 @@ _PyUOpPrint(const _PyUOpInstruction *uop)
         default:
             printf(" (%d, Unknown format)", uop->oparg);
     }
-    if (_PyUop_Flags[uop->opcode] & HAS_ERROR_FLAG) {
+    if (_PyUop_Flags[_PyUop_Uncached[uop->opcode]] & HAS_ERROR_FLAG) {
         printf(", error_target=%d", uop->error_target);
     }