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

Unsupported operand-size prefix on ENTER #88

Open
nezetic opened this issue Feb 26, 2019 · 0 comments
Open

Unsupported operand-size prefix on ENTER #88

nezetic opened this issue Feb 26, 2019 · 0 comments
Assignees
Projects
Milestone

Comments

@nezetic
Copy link
Member

nezetic commented Feb 26, 2019

It looks like REX prefix on x86 instruction ENTER is not supported by LLVM...

Our validator is failing on due to this.

@0xAcid confirmed this issue:

gdb-peda$ x/i 0x41935a
0x41935a <test_enter+2727>: enterw 0x8,0x1f
gdb-peda$ x/5b 0x41935a
0x41935a <test_enter+2727>: 0x66 0xc8 0x08 0x00 0x1f

Prefix is skipped by LLVM:

ax@ax:~$ llvm-mc-3.8 --disassemble --show-inst --show-encoding
0x66, 0xc8, 0x08, 0x00, 0x1f
    .text
    enter    $8, $31                 # encoding: [0xc8,0x08,0x00,0x1f]
                                        # <MCInst #780 ENTER
                                        #  <MCOperand Imm:8>
                                        #  <MCOperand Imm:31>>
@nezetic nezetic added this to the Future milestone Feb 26, 2019
@nezetic nezetic added this to New in Engine via automation Feb 26, 2019
@nezetic nezetic self-assigned this Feb 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Engine
  
New
Development

No branches or pull requests

1 participant