[issue45757] dis module incorrectly handles EXTENDED_ARG + NOP sequence

2021-11-08 Thread Rok Mandeljc
New submission from Rok Mandeljc : dis module incorrectly handles the instruction sequence where EXTENDED_ARG is followed by NOP, e.g.,: EXTENDED_ARG 0x01 NOP EXTENDED_ARG 0x01 LOAD_CONST 0x29 The above sequence loads the constant from index 0x0129, whereas dis attempts to load it from

[issue45757] dis module incorrectly handles EXTENDED_ARG + NOP sequence

2021-11-08 Thread Rok Mandeljc
Rok Mandeljc added the comment: The EXTENDED_ARG + NOP sequence seems to be specific to python 3.10; we could not reproduce the original bug (dis failing on telegram.message) with earlier python versions. The combination makes little sense, so perhaps it is a bug on its own