In reading output from an obscure compiler that produces dwarf1, it appears that
the reader will get confused by an AT_producer attribute, or indeed by any
FORM_STRING aside from AT_name in the TAG_compile_unit. The offending source is:

   case FORM_STRING:
      if (attr == AT_name)
        aDieInfo->name = (char *)xptr;
      xptr += strlen (aDieInfo->name) + 1;

Surely that last line should be 

      xptr += strlen (xptr) + 1;

-- since if the attr isn't AT_name it isn't in aDieInfo->name.

-- 
           Summary: Dwarf1 reading will go wrong or crash on AT_producer
           Product: binutils
           Version: 2.21 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: binutils
        AssignedTo: unassigned at sources dot redhat dot com
        ReportedBy: dporges at chipwrights dot com
                CC: bug-binutils at gnu dot org


http://sourceware.org/bugzilla/show_bug.cgi?id=11103

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to