Signed-off-by: Mark Wielaard <mjw@redhat.com>
2014-12-15 Mark Wielaard <mjw@redhat.com>
* readelf.c (print_debug_line_section): Check there is enough room
- for DW_LNE_set_address argument.
+ for DW_LNE_set_address argument. Make sure there is enough room
+ for the the initial unit_length.
2014-12-14 Mark Wielaard <mjw@redhat.com>
printf (gettext ("\nTable at offset %Zu:\n"), start_offset);
+ if (unlikely (linep + 4 > lineendp))
+ goto invalid_data;
Dwarf_Word unit_length = read_4ubyte_unaligned_inc (dbg, linep);
unsigned int length = 4;
if (unlikely (unit_length == 0xffffffff))