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/


_______________________________________________
Bug-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gnustep

Reply via email to