Skip to content

Commit

Permalink
Respect the operand size prefix override in relative jumps
Browse files Browse the repository at this point in the history
  • Loading branch information
rhelmot committed Oct 30, 2017
1 parent de57079 commit bd1c3f9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions priv/guest_x86_toIR.c
Original file line number Diff line number Diff line change
Expand Up @@ -15583,9 +15583,9 @@ DisResult disInstr_X86_WRK (
case 0x8F: /* JGb/JNLEb (jump greater) */
{ Int jmpDelta;
const HChar* comment = "";
jmpDelta = (Int)getUDisp32(delta);
d32 = (((Addr32)guest_EIP_bbstart)+delta+4) + jmpDelta;
delta += 4;
jmpDelta = (Int)getUDisp(current_sz_data, delta);
d32 = (((Addr32)guest_EIP_bbstart)+delta+current_sz_data) + jmpDelta;
delta += current_sz_data;
if (resteerCisOk
&& vex_control.guest_chase_cond
&& (Addr32)d32 != (Addr32)guest_EIP_bbstart
Expand Down

0 comments on commit bd1c3f9

Please sign in to comment.