This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
PR 11103, Dwarf1 reading will go wrong or crash on AT_producer
- From: Alan Modra <amodra at gmail dot com>
- To: binutils at sourceware dot org
- Date: Mon, 11 Jan 2010 20:24:37 +1030
- Subject: PR 11103, Dwarf1 reading will go wrong or crash on AT_producer
Applied mainline and 2.20.
PR 11103
* dwarf1.c (parse_die): Correct FORM_STRING data pointer increment.
Index: bfd/dwarf1.c
===================================================================
RCS file: /cvs/src/src/bfd/dwarf1.c,v
retrieving revision 1.21
diff -u -p -r1.21 dwarf1.c
--- bfd/dwarf1.c 9 Sep 2009 21:38:57 -0000 1.21
+++ bfd/dwarf1.c 11 Jan 2010 09:43:37 -0000
@@ -251,8 +251,8 @@ parse_die (bfd * abfd,
break;
case FORM_STRING:
if (attr == AT_name)
- aDieInfo->name = (char *)xptr;
- xptr += strlen (aDieInfo->name) + 1;
+ aDieInfo->name = (char *) xptr;
+ xptr += strlen ((char *) xptr) + 1;
break;
}
}
--
Alan Modra
Australia Development Lab, IBM