From 09f89893894fea2ebc9bdf6ba6ab15b831ec6cc3 Mon Sep 17 00:00:00 2001 From: "thestig@chromium.org" Date: Wed, 8 May 2013 20:24:03 +0000 Subject: Mac: Fix more errors from clang to get crash_report.xcodeproj close to compiling. R=mark@chromium.org Review URL: https://breakpad.appspot.com/593002 git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1176 4c0a9323-5329-0410-9bdc-e9ce6186880e --- src/third_party/libdisasm/x86_disasm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/third_party') diff --git a/src/third_party/libdisasm/x86_disasm.c b/src/third_party/libdisasm/x86_disasm.c index d6b7f810..51a213a4 100644 --- a/src/third_party/libdisasm/x86_disasm.c +++ b/src/third_party/libdisasm/x86_disasm.c @@ -165,7 +165,7 @@ unsigned int x86_disasm_forward( unsigned char *buf, unsigned int buf_len, if (next_addr != -1 ) { next_offset = next_addr - buf_rva; /* if offset is in this buffer... */ - if ( next_addr >= buf_rva && + if ( (uint32_t)next_addr >= buf_rva && next_offset < buf_len ) { /* go ahead and disassemble */ count += x86_disasm_forward( buf, -- cgit v1.2.1