This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] PR 2719, demangler crash
- From: DJ Delorie <dj at redhat dot com>
- To: rodrigc at mediaone dot net
- Cc: gcc-patches at gcc dot gnu dot org, mark at codesourcery dot com
- Date: Wed, 12 Dec 2001 16:30:59 -0500
- Subject: Re: [PATCH] PR 2719, demangler crash
- References: <20011212162328.A27768@mediaone.net>
> This problem is on mainline and branch.
> Is this one OK for branch as well?
>
> The testcase is in PR 2719:
Ok for mainline. Ok with me for branch, but needs Mark's approval.
Mark?
> Index: cplus-dem.c
> ===================================================================
> RCS file: /cvs/gcc/gcc/libiberty/cplus-dem.c,v
> retrieving revision 1.78
> diff -u -r1.78 cplus-dem.c
> --- cplus-dem.c 2001/12/06 21:56:15 1.78
> +++ cplus-dem.c 2001/12/12 21:20:26
> @@ -574,6 +574,9 @@
> (*type)++;
> }
>
> + if (count < 0)
> + count = -1;
> +
> return (count);
> }