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

* objc-lang.c (selectors_info): Check strchr for null result.
This commit is contained in:
Michael Snyder 2011-03-15 18:07:34 +00:00
parent 681c238c33
commit 50412521e8
2 changed files with 9 additions and 0 deletions

View File

@ -1,5 +1,7 @@
2011-03-15 Michael Snyder <msnyder@vmware.com>
* objc-lang.c (selectors_info): Check strchr for null result.
* stabsread.c (define_symbol): Guard against bad stabstring input.
2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>

View File

@ -752,6 +752,13 @@ selectors_info (char *regexp, int from_tty)
continue;
/* Find selector part. */
name = (char *) strchr (name+2, ' ');
if (name == NULL)
{
complaint (&symfile_complaints,
_("Bad method name '%s'"),
SYMBOL_NATURAL_NAME (msymbol));
continue;
}
if (regexp == NULL || re_exec(++name) != 0)
{
char *mystart = name;