2007-07-31 Michael Snyder <msnyder@access-company.com>
authorMichael Snyder <msnyder@vmware.com>
Wed, 1 Aug 2007 19:43:08 +0000 (19:43 +0000)
committerMichael Snyder <msnyder@vmware.com>
Wed, 1 Aug 2007 19:43:08 +0000 (19:43 +0000)
* cp-demangle.c (d_print_comp): Guard against null.

libiberty/ChangeLog
libiberty/cp-demangle.c

index c1ef6d12ecf98d2510a56ae82534b326f2dbae89..aee3cc76f575ae43235fc2f474c83a7b3624ea05 100644 (file)
@@ -1,3 +1,7 @@
+2007-07-31  Michael Snyder  <msnyder@access-company.com>
+
+       * cp-demangle.c (d_print_comp): Guard against null.
+
 2007-07-25  Ben Elliston  <bje@au.ibm.com>
 
        * Makefile.in (CFILES): Remove ternary.c.
index 992b3580bf7c4642bffe6f6dd571e9ad5263b19d..e4869f029dd725d9f61a9b3b6b0b74972e59ad8c 100644 (file)
@@ -2912,6 +2912,12 @@ d_print_comp (struct d_print_info *dpi,
            typed_name = d_left (typed_name);
          }
 
+       if (typed_name == NULL)
+         {
+           d_print_error (dpi);
+           return;
+         }
+
        /* If typed_name is a template, then it applies to the
           function type as well.  */
        if (typed_name->type == DEMANGLE_COMPONENT_TEMPLATE)
This page took 0.030779 seconds and 4 git commands to generate.