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

Group
 
 

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

Submitter:  Yousry Abdallah <yousry>
Submitted:  Sun 01 Jun 2014 04:25:00 PM UTC
   
 
Category:  Base/Foundation Severity:  3 - Normal
Item Group:  Bug Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group 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>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-06-01 CaS StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code