Skip to content

Commit

Permalink
x86: initialize eaDisplacement in 16-bit mode. Fixes #656
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcarne authored and aquynh committed Jul 18, 2016
1 parent d99cbc3 commit 1b585c1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/X86/X86DisassemblerDecoder.c
Original file line number Diff line number Diff line change
Expand Up @@ -1590,6 +1590,7 @@ static int readModRM(struct InternalInstruction *insn)
break;
case 0x3:
insn->eaBase = (EABase)(insn->eaRegBase + rm);
insn->eaDisplacement = EA_DISP_NONE;
if (readDisplacement(insn))
return -1;
break;
Expand Down

0 comments on commit 1b585c1

Please sign in to comment.