mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-12-05 02:47:05 +00:00
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:
parent
681c238c33
commit
50412521e8
@ -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>
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user