Bug in x86 Disassembly: 0xdd, 0xcc not being properly decoded
7o8v opened this issue · comments
Work environment
Questions | Answers |
---|---|
OS/arch/bits | MacOS x86, Windows x86 |
Architecture | x86 |
Source of Capstone | pip install capstone==5.0.1 |
Version/git commit | v5.0.1 |
Instruction bytes giving faulty results
0xdd, 0xcc
Expected results
Output:
<CsInsn 0x1000 [ddcc]: fxch st(0), st(4)>
Steps to get the wrong result
from capstone import *
CODE = b'\xdd\xcc'
md = Cs(CS_ARCH_X86, CS_MODE_32)
md.detail = True
for ins in md.disasm(CODE, 0x1000):
print(ins)
Actual results
NO OUTPUT