-
-
Notifications
You must be signed in to change notification settings - Fork 36.9k
dis._unpack_opargs should handle EXTENDED_ARG_QUICK #92932
Copy link
Copy link
Closed
Labels
3.11only security fixesonly security fixes3.12only security fixesonly security fixesstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Activity
Metadata
Metadata
Assignees
Labels
3.11only security fixesonly security fixes3.12only security fixesonly security fixesstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
In Python 3.11b0,
dis.dis()anddis.get_instructions()will show the "wrong" operand values for instructions prefixed by EXTENDED_ARG_QUICK.cpython/Lib/dis.py
Lines 591 to 595 in a4460f2
The bug is that this line only checks for
EXTENDED_ARGinstructions. It should check for instructions that deoptimize toEXTENDED_ARG(i.e.deop == EXTENDED_ARG).cpython/Lib/dis.py
Line 595 in a4460f2
To reproduce the issue, consider this snippet adapted from cloudpickle: