bug-gnustep
[Top][All Lists]
Advanced

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

gdomap heap corruption


From: Alexander Malmberg
Subject: gdomap heap corruption
Date: Wed, 27 Feb 2002 02:28:55 +0100

Hi,

The recent changes to gdomap broke it in a really silly way. This patch
fixes it. (Seems really silly to keep track of count and capacity
separately when the arrays are reallocated all the time anyway, but it's
late here, so...)

- Alexander Malmberg
Index: gdomap.c
===================================================================
RCS file: /cvsroot/gnustep/gnustep/core/base/Tools/gdomap.c,v
retrieving revision 1.49
diff -u -r1.49 gdomap.c
--- gdomap.c    26 Feb 2002 18:23:32 -0000      1.49
+++ gdomap.c    27 Feb 2002 01:22:16 -0000
@@ -471,6 +471,7 @@
   free(_rInfo);
   _rInfo = tmp;
   _rInfoCount--;
+  _rInfoCapacity--;
 }
 
 
@@ -560,6 +561,7 @@
   free(_wInfo);
   _wInfo = tmp;
   _wInfoCount--;
+  _wInfoCapacity--;
 }
 
 

reply via email to

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