[pr/17940] bfd/dwarf2.c: fix overflow bug in .dwarf_line
DJ Delorie
dj@redhat.com
Tue Feb 24 09:56:00 GMT 2015
You seem to have already fixed it in a different way:
dbb3fbbb (Nick Clifton 2015-02-12 16:45:11 +0000 1717) if (lh.total_length > stash->dwarf_line_size)
dbb3fbbb (Nick Clifton 2015-02-12 16:45:11 +0000 1718) {
dbb3fbbb (Nick Clifton 2015-02-12 16:45:11 +0000 1719) (*_bfd_error_handler)
dbb3fbbb (Nick Clifton 2015-02-12 16:45:11 +0000 1720) (_("Dwarf Error: Line info data is bigger (0x%lx) than the section (0x%lx)"),
dbb3fbbb (Nick Clifton 2015-02-12 16:45:11 +0000 1721) (long) lh.total_length, (long) stash->dwarf_line_size);
dbb3fbbb (Nick Clifton 2015-02-12 16:45:11 +0000 1722) bfd_set_error (bfd_error_bad_value);
dbb3fbbb (Nick Clifton 2015-02-12 16:45:11 +0000 1723) return NULL;
dbb3fbbb (Nick Clifton 2015-02-12 16:45:11 +0000 1724) }
But the test object was built with -ftext-sections -g (see binutils
bug 17940):
https://sourceware.org/bugzilla/show_bug.cgi?id=17940
but run "msp430-elf-objdump -S hello.o" instead of on hello.elf
More information about the Binutils
mailing list