1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-22 08:58:47 +00:00
freebsd-ports/devel/elfutils/files/patch-libdw_dwarf__getsrclines.c
Conrad Meyer e94ef01405 elfutils: Update to latest 0.179
Bump portrevision in kcov, which depends on elfutils ABI.

Discussed with:	asomers, mat
Approved by:	jrm
Differential Revision:	https://reviews.freebsd.org/D24614
2020-05-06 17:32:29 +00:00

12 lines
496 B
C

--- libdw/dwarf_getsrclines.c.orig 2020-03-30 12:17:45 UTC
+++ libdw/dwarf_getsrclines.c
@@ -287,7 +287,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;