This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[RFA] dbxread.c (process_one_symbol): Assert 'name' is not null.


There's at least one path to here in which 'name' may be suspected of being null.

OK?

2011-03-04  Michael Snyder  <msnyder@msnyder-server.eng.vmware.com>

	* dbxread.c (process_one_symbol): Assert 'name' is not null.

Index: dbxread.c
===================================================================
RCS file: /cvs/src/src/gdb/dbxread.c,v
retrieving revision 1.123
diff -u -p -u -p -r1.123 dbxread.c
--- dbxread.c	28 Feb 2011 23:55:18 -0000	1.123
+++ dbxread.c	4 Mar 2011 22:45:17 -0000
@@ -3289,6 +3289,7 @@ process_one_symbol (int type, int desc, 
 
      Generally this is used so that an alias can refer to its main
      symbol.  */
+  gdb_assert (name);
   if (name[0] == '#')
     {
       /* Initialize symbol reference names and determine if this is a

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]