public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* PATCH: libiberty/cp-demangle.c, guard against null
@ 2007-08-01  1:44 msnyder
  2007-08-01 14:52 ` Ian Lance Taylor
  0 siblings, 1 reply; 4+ messages in thread
From: msnyder @ 2007-08-01  1:44 UTC (permalink / raw)
  To: gcc-patches, gdb-patches, binutils; +Cc: ian, bje, dj, dberlin

[-- 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)

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: PATCH: libiberty/cp-demangle.c, guard against null
  2007-08-01  1:44 PATCH: libiberty/cp-demangle.c, guard against null msnyder
@ 2007-08-01 14:52 ` Ian Lance Taylor
  2007-08-01 19:45   ` msnyder
  0 siblings, 1 reply; 4+ messages in thread
From: Ian Lance Taylor @ 2007-08-01 14:52 UTC (permalink / raw)
  To: msnyder; +Cc: gcc-patches, gdb-patches, binutils, ian, bje, dj, dberlin

msnyder@sonic.net writes:

> 2007-07-31  Michael Snyder  <msnyder@access-company.com>
> 
> 	* cp-demangle.c (d_print_comp): Guard against null.

This is OK.

Thanks.

Ian

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: PATCH: libiberty/cp-demangle.c, guard against null
  2007-08-01 14:52 ` Ian Lance Taylor
@ 2007-08-01 19:45   ` msnyder
  2007-08-02  0:39     ` msnyder
  0 siblings, 1 reply; 4+ messages in thread
From: msnyder @ 2007-08-01 19:45 UTC (permalink / raw)
  To: Ian Lance Taylor
  Cc: msnyder, gcc-patches, gdb-patches, binutils, ian, bje, dj, dberlin

> msnyder@sonic.net writes:
>
>> 2007-07-31  Michael Snyder  <msnyder@access-company.com>
>>
>> 	* cp-demangle.c (d_print_comp): Guard against null.
>
> This is OK.

Committed.
Thanks.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: PATCH: libiberty/cp-demangle.c, guard against null
  2007-08-01 19:45   ` msnyder
@ 2007-08-02  0:39     ` msnyder
  0 siblings, 0 replies; 4+ messages in thread
From: msnyder @ 2007-08-02  0:39 UTC (permalink / raw)
  To: msnyder
  Cc: Ian Lance Taylor, msnyder, gcc-patches, gdb-patches, binutils,
	ian, bje, dj, dberlin

>> msnyder@sonic.net writes:
>>
>>> 2007-07-31  Michael Snyder  <msnyder@access-company.com>
>>>
>>> 	* cp-demangle.c (d_print_comp): Guard against null.
>>
>> This is OK.
>
> Committed.
> Thanks.

... and now committed to gcc as well.
Thanks DJ.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-08-02  0:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-01  1:44 PATCH: libiberty/cp-demangle.c, guard against null msnyder
2007-08-01 14:52 ` Ian Lance Taylor
2007-08-01 19:45   ` msnyder
2007-08-02  0:39     ` msnyder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).