bugGNUstep - Bugs: bug #32495, Integers read from XML plists are...

 
 

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

bug #32495: Integers read from XML plists are truncated

Submitted by:  Jens Ayton <ahruman>
Submitted on:  Tue 15 Feb 2011 07:13:47 PM UTC  
 
Category: Base/FoundationSeverity: 3 - Normal
Item Group: BugStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Wed 16 Feb 2011 08:48:22 AM UTC, comment #2:

Thanks very much ... I applied that patch to svn trunk.

Richard Frith-Macdonald <CaS>
Project Member
Wed 16 Feb 2011 08:13:26 AM UTC, comment #1:

Patch:

NSPropertyList.m:309
- ASSIGN(plist, [NSNumber numberWithInt: [value intValue]]);
+ ASSIGN(plist, [NSNumber numberWithLongLong: [value longLongValue]]);

Jens Ayton <ahruman>
Tue 15 Feb 2011 07:13:47 PM UTC, original submission:

When reading XML property list files, integer values are truncated to 32 bits. This happens even on 64-bit systems.

Mac OS X allows 64-bit integer values to be retrieved on all architectures.

This bug has been observed in 1.20.1 and 1.19.3-ubuntu1.

Jens Ayton <ahruman>

 

Attached Files
file #22694:  unsignedlonglongtest.m added by ahruman (1KiB - application/octet-stream - Test case)

 

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 ahruman (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 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 16 Feb 2011 08:48:22 AM UTCCaSStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Tue 15 Feb 2011 07:13:47 PM UTCahrumanAttached File-=>Added unsignedlonglongtest.m, #22694

    Back to the top


    Powered by Savane 3.1-cleanup1