dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: pnet/cscc/c c_types.c,1.38,1.39


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnet/cscc/c c_types.c,1.38,1.39
Date: Wed, 13 Aug 2003 01:32:27 -0400

Update of /cvsroot/dotgnu-pnet/pnet/cscc/c
In directory subversions:/tmp/cvs-serv4601/cscc/c

Modified Files:
        c_types.c 
Log Message:


CTypeDefineAnonEnum: incorrect length used in ILMalloc call, leading to
segv in anoymous enum's inside functions (bug #4732).


Index: c_types.c
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/cscc/c/c_types.c,v
retrieving revision 1.38
retrieving revision 1.39
diff -C2 -r1.38 -r1.39
*** c_types.c   12 Aug 2003 07:22:01 -0000      1.38
--- c_types.c   13 Aug 2003 05:32:24 -0000      1.39
***************
*** 692,696 ****
  
        /* Create a new name by prepending "enum " to the name */
!       newName = (char *)ILMalloc(strlen(name) + funcNameLen + 1);
        if(!newName)
        {
--- 692,696 ----
  
        /* Create a new name by prepending "enum " to the name */
!       newName = (char *)ILMalloc(strlen(name) + funcNameLen + 6);
        if(!newName)
        {





reply via email to

[Prev in Thread] Current Thread [Next in Thread]