Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bnd jumps not lifted #298

Open
danmaam opened this issue Feb 8, 2023 · 0 comments
Open

bnd jumps not lifted #298

danmaam opened this issue Feb 8, 2023 · 0 comments

Comments

@danmaam
Copy link

danmaam commented Feb 8, 2023

Description

Description

Lifting a bnd jmp instruction with x86 architecture results in an IRSB with no instructions and jumpkind Ijk_NoDecode
Steps to reproduce the bug

Steps to reproduce the bug

IPython session:
In [1]: import pyvex

In [2]: import archinfo

In [3]: import capstone

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

In [5]: bytecode = b'\xf2\xeb\xf5'

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

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: bnd jmp 0xfffffff8

Environment

pyvex 9.2.37 from pypi

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant