bugGNUstep - Bugs: bug #7516, NSDictionary and NSArray die on...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #7516: NSDictionary and NSArray die on large datasets

Submitted by:  None
Submitted on:  Fri 30 Jan 2004 12:46:30 AM UTC  
 
Category: Base/FoundationSeverity: 3 - Normal
Item Group: BugStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Tue 16 Mar 2004 09:53:15 AM UTC, comment #2:

Fixed in cvs

Richard Frith-Macdonald <CaS>
Project Member
Fri 30 Jan 2004 12:47:22 AM UTC, comment #1:

oops, forgot to add that my email address is lcampbel@akamai.com.

Anonymous
Fri 30 Jan 2004 12:46:30 AM UTC, original submission:

Both NSDictionary (in the 'allKeys' method) and NSArray (in the 'initWithArray:' method) die if called with collections that are too large (a million or so contained objects will do it). This is because they expect stack allocation to work in this case, and it won't; the symptom is a seg fault.

The fix is fairly obvious. I've attached diffs that work for gnustep-base 1.4.0 (we can't use the current version because we're stuck for various reasons with an older version of gcc). But I checked and while the source code in NSArray.m anyway is a little different in 1.8.0, the bug is still there and the fix should be obvious.

Anonymous

 

Attached Files
file #1031:  patch.txt added by None (2KiB - www/unknown - This file contains diffs for NSDictionary.m and NSArray.m)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 4 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Tue 16 Mar 2004 09:53:15 AM UTCCaSStatusNone=>Fixed
  Open/ClosedOpen=>Closed
Fri 30 Jan 2004 12:51:53 AM UTClcampbelCarbon-Copy-=>Added lcampbel --AT-- akamai --DOT-- com
Fri 30 Jan 2004 12:46:30 AM UTCNoneAttached File-=>Added patch.txt, #1011

Back to the top


Powered by Savane 3.1-cleanup1