diff options
Diffstat (limited to 'src/third_party/libdisasm/x86_disasm.c')
-rw-r--r-- | src/third_party/libdisasm/x86_disasm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/third_party/libdisasm/x86_disasm.c b/src/third_party/libdisasm/x86_disasm.c index 51a213a4..1b82f4e6 100644 --- a/src/third_party/libdisasm/x86_disasm.c +++ b/src/third_party/libdisasm/x86_disasm.c @@ -35,7 +35,7 @@ unsigned int x86_disasm( unsigned char *buf, unsigned int buf_len, if ( offset >= buf_len ) { /* another caller screwup ;) */ - x86_report_error(report_disasm_bounds, (void*)(long)buf_rva+offset); + x86_report_error(report_disasm_bounds, (void*)(long)(buf_rva+offset)); return 0; } @@ -53,13 +53,13 @@ unsigned int x86_disasm( unsigned char *buf, unsigned int buf_len, /* check and see if we had an invalid instruction */ if (! size ) { - x86_report_error(report_invalid_insn, (void*)(long)buf_rva+offset ); + x86_report_error(report_invalid_insn, (void*)(long)(buf_rva+offset)); return 0; } /* check if we overran the end of the buffer */ if ( size > len ) { - x86_report_error( report_insn_bounds, (void*)(long)buf_rva + offset ); + x86_report_error( report_insn_bounds, (void*)(long)(buf_rva + offset)); MAKE_INVALID( insn, bytes ); return 0; } |