angr/pyvex

fnop instruction not lifted

Closed this issue · 0 comments

Description

Lifting a fnop instruction with x86 architecture results in an IRSB with no instructions and jumpkind Ijk_NoDecode

Steps to reproduce the bug

IPython session:
In [1]: import pyvex
In [2]: import archinfo

In [3]: bytecode = b'\xd9\xd0'

In [4]: pyvex.lift(bytecode, 0x0, archinfo.arch_from_id('x86'))
Out[4]: IRSB <0x0 bytes, 0 ins., <Arch X86 (LE)>> at 0x0

In [5]: import capstone

In [6]: md = capstone.Cs(capstone.CS_ARCH_X86, capstone.CS_MODE_32)

In [7]: for i in md.disasm(bytecode, 0x0):
...: print("0x%x:\t%s\t%s\n" % (i.address, i.mnemonic, i.op_str))
...:
0x0: fnop

Environment

pyvex version 9.2.33 from pypi

Additional context

No response