[PATCH] PR 2719, demangler crash

Craig Rodrigues rodrigc@mediaone.net
Wed Dec 12 13:24:00 GMT 2001


Hi,

This problem is on mainline and branch.
Is this one OK for branch as well?

The testcase is in PR 2719:

c++filt _Utf58_0_1__1_2147483647__2147483648

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);
 }
 
-- 
Craig Rodrigues        
http://www.gis.net/~craigr    
rodrigc@mediaone.net          



More information about the Gcc-patches mailing list