This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] PR 2719, demangler crash



> 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);
>  }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]