bugGNUstep - Bugs: bug #42483, NSString segfaults on Linux 64Bit...

 
 

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

bug #42483: NSString segfaults on Linux 64Bit systems.

Submitted by:  Yousry Abdallah <yousry>
Submitted on:  Sun 01 Jun 2014 04:25:00 PM UTC  
 
Category: Base/FoundationSeverity: 3 - Normal
Item Group: BugStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Sun 01 Jun 2014 06:10:20 PM UTC, comment #1:

Thanks very much … it may have been an imprecise report, but it was enough of a clue to let me reproduce and fix the problem.
Should be ok in svn trunk now.

Richard Frith-Macdonald <CaS>
Project Member
Sun 01 Jun 2014 04:25:00 PM UTC, original submission:

In advance I would like to apologize for this imprecise report (due to a lack of time).

The [NSSTRING cStringUsingEncoding:NSASCIIStringEncoding] method segfaults under following conditions:

- Linux 64 Bit
- latest core compiled with clang version 3.5.0 (205406)
- The String is long (for example 23kb) and has an odd length (adding one char avoid the segfault.)

Workaround: [NSSTRING UTF8String]

Perhaps there is a problem with the character length / array size calculation but I'm not sure about that.

Yousry Abdallah <yousry>

 

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 yousry (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
    Sun 01 Jun 2014 06:10:20 PM UTCCaSStatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1