[Midnightbsd-cvs] src [7173] trunk/contrib/binutils/bfd/dwarf2.c: avoid NULL dereference
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sun Jul 26 18:13:12 EDT 2015
Revision: 7173
http://svnweb.midnightbsd.org/src/?rev=7173
Author: laffer1
Date: 2015-07-26 18:13:12 -0400 (Sun, 26 Jul 2015)
Log Message:
-----------
avoid NULL dereference
Modified Paths:
--------------
trunk/contrib/binutils/bfd/dwarf2.c
Modified: trunk/contrib/binutils/bfd/dwarf2.c
===================================================================
--- trunk/contrib/binutils/bfd/dwarf2.c 2015-07-26 21:59:33 UTC (rev 7172)
+++ trunk/contrib/binutils/bfd/dwarf2.c 2015-07-26 22:13:12 UTC (rev 7173)
@@ -2382,7 +2382,8 @@
else
addr += section->vma;
*filename_ptr = NULL;
- *functionname_ptr = NULL;
+ if (!do_line)
+ *functionname_ptr = NULL;
*linenumber_ptr = 0;
if (! *pinfo)
More information about the Midnightbsd-cvs
mailing list