forked from Imagelibrary/binutils-gdb
2011-03-04 Michael Snyder <msnyder@vmware.com>
* stabsread.c (define_symbol): Guard against bad stabstring input.
This commit is contained in:
@@ -636,6 +636,12 @@ define_symbol (CORE_ADDR valu, char *string, int desc, int type,
|
||||
{
|
||||
p += 2;
|
||||
p = strchr (p, ':');
|
||||
if (p == NULL)
|
||||
{
|
||||
complaint (&symfile_complaints,
|
||||
_("Bad stabs string '%s'"), string);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
/* If a nameless stab entry, all we need is the type, not the symbol.
|
||||
|
||||
Reference in New Issue
Block a user