|
From: | Manuel Guesdon |
Subject: | [bug #29980] Memory problem in NSConcreteHashTable.m and NSHashTable.m |
Date: | Fri, 28 May 2010 17:45:07 +0000 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 |
URL: <http://savannah.gnu.org/bugs/?29980> Summary: Memory problem in NSConcreteHashTable.m and NSHashTable.m Project: GNUstep Submitted by: mguesdon Submitted on: ven 28 mai 2010 19:45:06 CEST Category: Base/Foundation Severity: 5 - Blocker Item Group: None Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any _______________________________________________________ Details: in -allObjects We allocate nodeCount objects but in while loop we affect nodeCount+1 objects (the last one is the nil returned by NSNextHashEnumeratorItem()). 3 possibles fixes: - allocate nodeCount+1 objects - or a test NSNextHashEnumeratorItem() return value before assigning the value - or add a test before assignment (index<nodeCount &&...) _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?29980> _______________________________________________ Message posté via/par Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |