bugGNUstep - Bugs: bug #29980, Memory problem in...

Group
 
 

bug #29980: Memory problem in NSConcreteHashTable.m and NSHashTable.m

Submitter:  Manuel Guesdon <mguesdon>
Submitted:  Fri 28 May 2010 05:45:06 PM UTC
   
 
Category:  Base/Foundation Severity:  5 - Blocker
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 29 May 2010 06:44:13 AM UTC, comment #1: 

Thanks ... I fixed that in svn trunk (using your third suggested fix).

Richard Frith-Macdonald <CaS>
Group Member
Fri 28 May 2010 05:45:06 PM UTC, original submission:  

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 &&...)

Manuel Guesdon <mguesdon>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by CaS (Posted a comment)
  • -email is unavailable- added by mguesdon (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-05-29 CaS StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code