Author: rfm
Date: Fri Mar 13 19:31:14 2015
New Revision: 38406

URL: http://svn.gna.org/viewcvs/gnustep?rev=38406&view=rev
Log:
fix for possible crash during thread exit

Modified:
    libs/base/trunk/ChangeLog
    libs/base/trunk/Source/NSAutoreleasePool.m

Modified: libs/base/trunk/ChangeLog
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/base/trunk/ChangeLog?rev=38406&r1=38405&r2=38406&view=diff
==============================================================================
--- libs/base/trunk/ChangeLog   (original)
+++ libs/base/trunk/ChangeLog   Fri Mar 13 19:31:14 2015
@@ -1,3 +1,10 @@
+2015-03-13  Richard Frith-Macdonald <[email protected]>
+
+       * Source/NSAutoreleasePool.m: Fix a bug leading to crashes on thread
+       exit in cases where deallocation of something in the thread dictionary
+       causes further use of the thread's autorelease pool (which has already
+       been deallocated).
+
 2015-03-10 Niels Grewe <[email protected]>
 
        * Source/GSTimSort.m: Fix a DoS vulnerability discovered in the 

Modified: libs/base/trunk/Source/NSAutoreleasePool.m
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/base/trunk/Source/NSAutoreleasePool.m?rev=38406&r1=38405&r2=38406&view=diff
==============================================================================
--- libs/base/trunk/Source/NSAutoreleasePool.m  (original)
+++ libs/base/trunk/Source/NSAutoreleasePool.m  Fri Mar 13 19:31:14 2015
@@ -790,6 +790,7 @@
   /* Now free the memory (we have finished usingthe pool).
    */
   pool = tv->current_pool;
+  tv->current_pool = nil;
   while (pool)
     {
       NSAutoreleasePool *p = pool->_parent;


_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs

Reply via email to