Implement proper "startup-with-shell" support on gdbserver
[deliverable/binutils-gdb.git] / binutils / rddbg.c
index 1c2babde9ba6730dff315c3f083e895324a40180..1d8c4471887c29877ef23d021b05bb5b22ca9c61 100644 (file)
@@ -1,5 +1,5 @@
 /* rddbg.c -- Read debugging information into a generic form.
-   Copyright (C) 1995-2015 Free Software Foundation, Inc.
+   Copyright (C) 1995-2017 Free Software Foundation, Inc.
    Written by Ian Lance Taylor <ian@cygnus.com>.
 
    This file is part of GNU Binutils.
@@ -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)
            {
This page took 0.025477 seconds and 4 git commands to generate.