Fix address violation errors parsing corrupt binary files.
[deliverable/binutils-gdb.git] / binutils / rddbg.c
index 1d8c4471887c29877ef23d021b05bb5b22ca9c61..b9780608cf366561cf4de2c261fb3c8248cbd55d 100644 (file)
@@ -303,7 +303,8 @@ read_symbol_stabs_debugging_info (bfd *abfd, asymbol **syms, long symcount,
            return FALSE;
          f = NULL;
 
-         while (s[strlen (s) - 1] == '\\'
+         while (strlen (s) > 0
+                && s[strlen (s) - 1] == '\\'
                 && ps + 1 < symend)
            {
              char *sc, *n;
This page took 0.032364 seconds and 4 git commands to generate.