[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/11103] New: Dwarf1 reading will go wrong or crash on AT_pr
From: |
dporges at chipwrights dot com |
Subject: |
[Bug binutils/11103] New: Dwarf1 reading will go wrong or crash on AT_producer |
Date: |
17 Dec 2009 17:07:59 -0000 |
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/11103] New: Dwarf1 reading will go wrong or crash on AT_producer,
dporges at chipwrights dot com <=