Skip to content

Commit

Permalink
Recognize call instruction as a jump
Browse files Browse the repository at this point in the history
Destinations of call instructions were not marked as
jump destinations before this patch, resulting in some bugs
where the patcher did not know about such a jump destination (actually
call destination) being a boundary.
  • Loading branch information
GBuella committed Jun 29, 2017
1 parent 23812ff commit d0c9f1c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/disasm_wrapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ intercept_disasm_next_instruction(struct intercept_disasm_context *context,
case X86_INS_JRCXZ:
case X86_INS_JS:
case X86_INS_LOOP:
case X86_INS_CALL:
result.is_jump = true;
assert(context->insn->detail->x86.op_count == 1);
break;
Expand Down

0 comments on commit d0c9f1c

Please sign in to comment.