jansson/test
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
..
bin Update copyrights for 2016 2016-09-18 14:17:03 +03:00
scripts Update copyrights for 2016 2016-09-18 14:17:03 +03:00
suites json_pack: Improve handling of formats with '?' and '*'. 2018-09-25 16:35:19 -04:00
.gitignore Improve test coverage. 2018-02-15 10:12:31 -05:00
Makefile.am Distribute some missing files 2010-01-21 21:48:31 +02:00
run-suites Use expr instead of $((...)) in shell scripts 2014-10-03 08:49:08 +03:00