This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [pr/17940] bfd/dwarf2.c: fix overflow bug in .dwarf_line
- From: DJ Delorie <dj at redhat dot com>
- To: Nicholas Clifton <nickc at redhat dot com>
- Cc: binutils at sourceware dot org
- Date: Mon, 23 Feb 2015 22:41:22 -0500
- Subject: Re: [pr/17940] bfd/dwarf2.c: fix overflow bug in .dwarf_line
- Authentication-results: sourceware.org; auth=none
- References: <201502120646 dot t1C6kigl020466 at greed dot delorie dot com> <54EB5EFE dot 3000908 at redhat dot com>
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