jansson/test/suites
Corey Farrell 5df5fc5b13
json_pack: Improve handling of formats with '?' and '*'.
When NULL is received for an optional argument we should not set an
error message as this would block later error messages. If NULL is
received for a non-optional string we should set has_error. Set
has_error for UTF-8 errors to ensure optional strings with UTF-8
errors are not replaced with json_null(). Use 'purpose' argument in
NULL error messages of read_string.

Add error handling and tests for invalid formats where '+', '#', or '%'
is used on an optional string 's?' or 's*'.

Fix NULL string error messages to use 'purpose'.

Refactor skipping of '*' token, this is now handled by read_string and
pack_object_inter. This allows invalid format strings such as 's*#' and
's*+' to produce error messages.

Fixes #437
2018-09-25 16:35:19 -04:00
..
api json_pack: Improve handling of formats with '?' and '*'. 2018-09-25 16:35:19 -04:00
encoding-flags Update copyrights for 2016 2016-09-18 14:17:03 +03:00
invalid Update copyrights for 2016 2016-09-18 14:17:03 +03:00
invalid-unicode Update copyrights for 2016 2016-09-18 14:17:03 +03:00
valid Update copyrights for 2016 2016-09-18 14:17:03 +03:00
.gitattributes Always use LF as line ending so that we don't get any problems with line 2013-03-07 16:12:07 +01:00
Makefile.am Remove invalid subdirs from test/suites/Makefile.am 2011-02-25 21:09:04 +02:00