Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1350)

Unified Diff: src/third_party/libdisasm/x86_disasm.c

Issue 1570843002: libdisasm: Don't depend on sizeof(void) (Closed) Base URL: https://chromium.googlesource.com/breakpad/breakpad@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/third_party/libdisasm/x86_disasm.c
diff --git a/src/third_party/libdisasm/x86_disasm.c b/src/third_party/libdisasm/x86_disasm.c
index 51a213a46e33ed251e3f10dad9fc402ed27c0ccf..1b82f4e667125c4f5593b24e65d8cc6a79c86fad 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));
brucedawson 2016/01/08 21:19:11 Too late for this change, but why are we casting t
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;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698