From: Alan Modra Date: Mon, 11 Jan 2010 09:53:27 +0000 (+0000) Subject: PR 11103 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=20b1d3e390598b37d4fd739b91a3c3ec20ac9e44;p=binutils-gdb.git PR 11103 * dwarf1.c (parse_die): Correct FORM_STRING data pointer increment. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index ec184aa25e4..554227f2b4e 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2010-01-11 Alan Modra + + PR 11103 + * dwarf1.c (parse_die): Correct FORM_STRING data pointer increment. + 2010-01-11 Alan Modra PR 6832 diff --git a/bfd/dwarf1.c b/bfd/dwarf1.c index 26740448cdd..375f4cf166c 100644 --- a/bfd/dwarf1.c +++ b/bfd/dwarf1.c @@ -1,5 +1,5 @@ /* DWARF 1 find nearest line (_bfd_dwarf1_find_nearest_line). - Copyright 1998, 1999, 2000, 2001, 2002, 2004, 2005, 2007, 2008 + Copyright 1998, 1999, 2000, 2001, 2002, 2004, 2005, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. Written by Gavin Romig-Koch of Cygnus Solutions (gavin@cygnus.com). @@ -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; } }