Skip to content

Commit

Permalink
Merge pull request capstone-engine#657 from davidcarne/fix-uninit
Browse files Browse the repository at this point in the history
x86: initialize eaDisplacement in 16-bit mode.  Fixes capstone-engine#656
  • Loading branch information
aquynh authored Jul 18, 2016
2 parents dabc9f2 + 81f2bcf commit 47998be
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 @@ -1646,6 +1646,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 47998be

Please sign in to comment.