This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [pr/17940] bfd/dwarf2.c: fix overflow bug in .dwarf_line


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]