c7a62b1397
- Drop GCC requirement to 4.8 - Remove -Werror for i386, for now anyway - Require FreeBSD 10.0 or higher for strchrnul() - Fix a few warnings noticed by gcc with optimization on Sponsored by: EMC / Isilon Storage Division
11 lines
496 B
C
11 lines
496 B
C
--- libdw/dwarf_getsrclines.c.orig 2015-06-10 19:44:33 UTC
|
|
+++ libdw/dwarf_getsrclines.c
|
|
@@ -188,7 +188,7 @@ read_srclines (Dwarf *dbg,
|
|
/* Remember array with the standard opcode length (-1 to account for
|
|
the opcode with value zero not being mentioned). */
|
|
const uint8_t *standard_opcode_lengths = linep - 1;
|
|
- if (unlikely (lineendp - linep < opcode_base - 1))
|
|
+ if (unlikely (lineendp - linep < (ptrdiff_t)opcode_base - 1))
|
|
goto invalid_data;
|
|
linep += opcode_base - 1;
|
|
|