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/ _______________________________________________ Bug-gnustep mailing list Bug-gnustep@gnu.org https://lists.gnu.org/mailman/listinfo/bug-gnustep