mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 09:08:59 +00:00
Fix an illegal memory access parsing corrupt STABD debug information.
PR binutils/21158 * rddbg.c (read_symbol_stabs_debugging_info): Check for a null or empty symbol name.
This commit is contained in:
@@ -299,7 +299,10 @@ read_symbol_stabs_debugging_info (bfd *abfd, asymbol **syms, long symcount,
|
||||
*pfound = TRUE;
|
||||
|
||||
s = i.name;
|
||||
if (s == NULL || strlen (s) < 1)
|
||||
return FALSE;
|
||||
f = NULL;
|
||||
|
||||
while (s[strlen (s) - 1] == '\\'
|
||||
&& ps + 1 < symend)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user