Author: rfm Date: Tue Aug 30 15:20:34 2016 New Revision: 40066 URL: http://svn.gna.org/viewcvs/gnustep?rev=40066&view=rev Log: patch by <abbas.raza.1...@gmail.com>
Modified: libs/base/trunk/ChangeLog libs/base/trunk/Source/NSJSONSerialization.m Modified: libs/base/trunk/ChangeLog URL: http://svn.gna.org/viewcvs/gnustep/libs/base/trunk/ChangeLog?rev=40066&r1=40065&r2=40066&view=diff ============================================================================== --- libs/base/trunk/ChangeLog (original) +++ libs/base/trunk/ChangeLog Tue Aug 30 15:20:34 2016 @@ -1,3 +1,8 @@ +2016-08-30 Abbas Raza <abbas.raza.1...@gmail.com> + + * Source/NSJSONSerialization.m: Generate NSError rather than raising + exception if the trailing '"' in the dsocument is missing. + 2016-08-28 Richard Frith-Macdonald <r...@gnu.org> * Source/GSMime.m: Fix typo which was causing premature termination of Modified: libs/base/trunk/Source/NSJSONSerialization.m URL: http://svn.gna.org/viewcvs/gnustep/libs/base/trunk/Source/NSJSONSerialization.m?rev=40066&r1=40065&r2=40066&view=diff ============================================================================== --- libs/base/trunk/Source/NSJSONSerialization.m (original) +++ libs/base/trunk/Source/NSJSONSerialization.m Tue Aug 30 15:20:34 2016 @@ -409,6 +409,13 @@ next = consumeChar(state); } + if (currentChar(state) != '"') + { + [val release]; + parseError(state); + return nil; + } + if (bufferIndex > 0) { NSMutableString *str; _______________________________________________ Gnustep-cvs mailing list Gnustep-cvs@gna.org https://mail.gna.org/listinfo/gnustep-cvs