+2019-03-29 Mark Wielaard <mark@klomp.org>
+
+ * readelf.c (print_debug_macinfo_section): Check cus[0] is not the
+ sentinel.
+
2019-03-27 Mark Wielaard <mark@klomp.org>
- * strip (handle_elf): Assert that symbol section number exists.
+ * strip.c (handle_elf): Assert that symbol section number exists.
2019-01-24 Mark Wielaard <mark@klomp.org>
/* Find the CU DIE for this file. */
size_t macoff = readp - (const unsigned char *) data->d_buf;
const char *fname = "???";
- if (macoff >= cus[0].offset)
+ if (macoff >= cus[0].offset && cus[0].offset != data->d_size)
{
while (macoff >= cus[1].offset && cus[1].offset != data->d_size)
++cus;
if (cus[0].files == NULL
- && dwarf_getsrcfiles (&cus[0].die, &cus[0].files, NULL) != 0)
+ && dwarf_getsrcfiles (&cus[0].die, &cus[0].files, NULL) != 0)
cus[0].files = (Dwarf_Files *) -1l;
if (cus[0].files != (Dwarf_Files *) -1l)