]> git.efficios.com Git - deliverable/binutils-gdb.git/commitdiff
2011-03-04 Michael Snyder <msnyder@vmware.com>
authorMichael Snyder <msnyder@vmware.com>
Tue, 15 Mar 2011 17:54:27 +0000 (17:54 +0000)
committerMichael Snyder <msnyder@vmware.com>
Tue, 15 Mar 2011 17:54:27 +0000 (17:54 +0000)
* stabsread.c (define_symbol): Guard against bad stabstring input.

gdb/ChangeLog
gdb/stabsread.c

index bc783798400b79b085b3d2685999eaa677abd19b..c27cd8b1df301445a08c933fc42628e1dd356f1f 100644 (file)
@@ -1,3 +1,7 @@
+2011-03-15  Michael Snyder  <msnyder@vmware.com>
+
+       * stabsread.c (define_symbol): Guard against bad stabstring input.
+
 2011-03-15  Pierre Muller  <muller@ics.u-strasbg.fr>
 
        Remove trailing spaces and tabulations from pascal language
index bd8e12b8a2a478b8ae2a7c05f6cb4b0fc80b93a6..c7d8a6c4743dd18ce008aa8ae8f6bf3c5c0093c2 100644 (file)
@@ -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.
This page took 0.031061 seconds and 4 git commands to generate.