Skip to content

Commit

Permalink
Merge branch 'release9.2/fixes/modify-data-assert' into v9.2_patches
Browse files Browse the repository at this point in the history
  • Loading branch information
John Detter committed Jul 11, 2016
2 parents 3a6ad66 + d0b8e3d commit 80a0838
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dyninstAPI/src/codegen-x86.C
Original file line number Diff line number Diff line change
Expand Up @@ -1203,7 +1203,7 @@ bool insnCodeGen::modifyData(Address targetAddr, instruction &insn, codeGen &gen
origInsn += pref_count;

/* Decode the opcode */
if(ia32_decode_opcode(0, origInsn, instruct, NULL))
if(ia32_decode_opcode(0, origInsn, instruct, NULL) < 0)
assert(!"Couldn't decode opcode of already known instruction!\n");

/* Calculate the amount of opcode bytes */
Expand Down Expand Up @@ -1328,7 +1328,7 @@ bool insnCodeGen::modifyDisp(signed long newDisp, instruction &insn, codeGen &ge
origInsn += pref_count;

/* Decode the opcode */
if(ia32_decode_opcode(0, origInsn, instruct, NULL))
if(ia32_decode_opcode(0, origInsn, instruct, NULL) < 0)
assert(!"Couldn't decode opcode of already known instruction!\n");

/* Calculate the amount of opcode bytes */
Expand Down

0 comments on commit 80a0838

Please sign in to comment.