bugGNUstep - Bugs: bug #45286, -[NSString...

Group
 
 

bug #45286: -[NSString initWithContentsOfFile:encoding:error:] can return nil without updating error variable

Submitter:  Larry Campbell <lcampbel>
Submitted:  Tue 09 Jun 2015 06:28:54 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
   

Wed 09 Mar 2016 02:31:09 PM UTC, comment #1: 

In svn

Richard Frith-Macdonald <CaS>
Group Member
Tue 09 Jun 2015 06:28:54 PM UTC, original submission:  

There are some error paths in -[NSString initWithContentsOfFile:encoding:error:] that can return without storing anything into the NSError object pointed to by error:. This is incorrect, and can cause callers to reference uninitialized memory. Any time nil is returned, an NSError object should be returned to the caller through the error: pointer.

Larry Campbell <lcampbel>

 

(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 lcampbel (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
    2016-03-09 CaS StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code