From: Michael Snyder Date: Tue, 15 Mar 2011 19:03:52 +0000 (+0000) Subject: 2011-03-04 Michael Snyder X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=13f6513cd468be473c97822b4907b05bc408d69c;p=binutils-gdb.git 2011-03-04 Michael Snyder * dbxread.c (process_one_symbol): Assert 'name' is not null. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 11378c08dc4..85a0d3fa723 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,7 @@ 2011-03-15 Michael Snyder + * dbxread.c (process_one_symbol): Assert 'name' is not null. + * objc-lang.c (selectors_info): Check strchr for null result. * stabsread.c (define_symbol): Guard against bad stabstring input. diff --git a/gdb/dbxread.c b/gdb/dbxread.c index 2e32f388e16..9f9317de52e 100644 --- a/gdb/dbxread.c +++ b/gdb/dbxread.c @@ -3289,6 +3289,7 @@ process_one_symbol (int type, int desc, CORE_ADDR valu, char *name, 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