bugGNUstep - Bugs: bug #24883, [NSData getBytes:length:] behavior...

 
 

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

bug #24883: [NSData getBytes:length:] behavior different than Cocoa

Submitted by:  Doug Simons <theeggcamefirst>
Submitted on:  Wed 19 Nov 2008 11:08:35 PM UTC  
 
Category: Base/FoundationSeverity: 3 - Normal
Item Group: BugStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Thu 20 Nov 2008 06:21:17 PM UTC, comment #2:

Works great -- thank you for the instant fix!!

Doug Simons <theeggcamefirst>
Thu 20 Nov 2008 12:05:55 AM UTC, comment #1:

Fixed that in SVN ... thanks.

Richard Frith-Macdonald <CaS>
Project Member
Wed 19 Nov 2008 11:08:35 PM UTC, original submission:

Calling [NSData getBytes:length:] throws an NSRangeException exception if the length parameter is greater than the number of bytes of data available. On Cocoa, no exception is thrown (and presumably only the available bytes are copied).

Doug Simons <theeggcamefirst>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    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 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 20 Nov 2008 12:05:55 AM UTCCaSStatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1