[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #45286] -[NSString initWithContentsOfFile:encoding:error:] can retu
From: |
Larry Campbell |
Subject: |
[bug #45286] -[NSString initWithContentsOfFile:encoding:error:] can return nil without updating error variable |
Date: |
Tue, 09 Jun 2015 18:28:55 +0000 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/600.6.3 (KHTML, like Gecko) Version/8.0.6 Safari/600.6.3 |
URL:
<http://savannah.gnu.org/bugs/?45286>
Summary: -[NSString initWithContentsOfFile:encoding:error:]
can return nil without updating error variable
Project: GNUstep
Submitted by: lcampbel
Submitted on: Tue 09 Jun 2015 06:28:54 PM GMT
Category: Base/Foundation
Severity: 3 - Normal
Item Group: Bug
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
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.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?45286>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug #45286] -[NSString initWithContentsOfFile:encoding:error:] can return nil without updating error variable,
Larry Campbell <=