* objc-lang.c (selectors_info): Check strchr for null result.
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>
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;