From: msnyder@sonic.net
To: gcc-patches@gcc.gnu.org, gdb-patches@sourceware.org,
binutils@sourceware.org
Cc: ian@airs.com, bje@ibm.com, dj@redhat.com, dberlin@dberlin.org
Subject: PATCH: libiberty/cp-demangle.c, guard against null
Date: Wed, 01 Aug 2007 01:44:00 -0000 [thread overview]
Message-ID: <7317.12.7.175.2.1185932652.squirrel@webmail.sonic.net> (raw)
[-- Attachment #1: Type: text/plain, Size: 0 bytes --]
[-- Attachment #2: 18.txt --]
[-- Type: text/plain, Size: 775 bytes --]
2007-07-31 Michael Snyder <msnyder@access-company.com>
* cp-demangle.c (d_print_comp): Guard against null.
Index: cp-demangle.c
===================================================================
RCS file: /cvs/src/src/libiberty/cp-demangle.c,v
retrieving revision 1.67
diff -p -r1.67 cp-demangle.c
*** cp-demangle.c 6 May 2007 00:25:11 -0000 1.67
--- cp-demangle.c 1 Aug 2007 01:41:03 -0000
*************** d_print_comp (struct d_print_info *dpi,
*** 2912,2917 ****
--- 2912,2923 ----
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)
next reply other threads:[~2007-08-01 1:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-01 1:44 msnyder [this message]
2007-08-01 14:52 ` Ian Lance Taylor
2007-08-01 19:46 ` msnyder
2007-08-02 0:39 ` msnyder
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7317.12.7.175.2.1185932652.squirrel@webmail.sonic.net \
--to=msnyder@sonic.net \
--cc=binutils@sourceware.org \
--cc=bje@ibm.com \
--cc=dberlin@dberlin.org \
--cc=dj@redhat.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=gdb-patches@sourceware.org \
--cc=ian@airs.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox