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] |
I had the misfortune to have an executable with bogus dwarf information.
! while (stash->info_ptr < stash->info_ptr_end)
{
bfd_vma length;
unsigned int offset_size = addr_size;
--- 3023,3029 ----
BFD_ASSERT (addr_size == 4 || addr_size == 8);
/* Read each remaining comp. units checking each as they are read. */
! while (stash->info_ptr != stash->info_ptr_end)
{
bfd_vma length;
unsigned int offset_size = addr_size;
each = parse_comp_unit (stash, length, info_ptr_unit, offset_size); + if (!each) + { + /* The dwarf information is damaged, don't trust it any + more. */ + stash->info_ptr = stash->info_ptr_end; + break; + }
Cheers Nick
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |