diff options
-rw-r--r-- | binutils/ChangeLog | 6 | ||||
-rw-r--r-- | binutils/rddbg.c | 3 |
2 files changed, 9 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 99774b6..4f9bdfa 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,5 +1,11 @@ 2017-02-14 Nick Clifton <nickc@redhat.com> + PR binutils/21158 + * rddbg.c (read_symbol_stabs_debugging_info): Check for a null or + empty symbol name. + +2017-02-14 Nick Clifton <nickc@redhat.com> + PR binutils/21157 * stabs.c (parse_stab_enum_type): Check for corrupt NAME:VALUE pairs. diff --git a/binutils/rddbg.c b/binutils/rddbg.c index ae25dec..1d8c447 100644 --- a/binutils/rddbg.c +++ b/binutils/rddbg.c @@ -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) { |