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]

[PATCH] PR 2719, demangler crash


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          


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