mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
fix for possible crash during thread exit
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38406 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
b968b38b09
commit
04815b06fb
2 changed files with 8 additions and 0 deletions
|
@ -1,3 +1,10 @@
|
|||
2015-03-13 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* 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 <niels.grewe@halbordnung.de>
|
||||
|
||||
* Source/GSTimSort.m: Fix a DoS vulnerability discovered in the
|
||||
|
|
|
@ -790,6 +790,7 @@ pop_pool_from_cache (struct autorelease_thread_vars *tv)
|
|||
/* Now free the memory (we have finished usingthe pool).
|
||||
*/
|
||||
pool = tv->current_pool;
|
||||
tv->current_pool = nil;
|
||||
while (pool)
|
||||
{
|
||||
NSAutoreleasePool *p = pool->_parent;
|
||||
|
|
Loading…
Reference in a new issue