5df5fc5b13
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 |
||
---|---|---|
.. | ||
check-exports | ||
Makefile.am | ||
run | ||
test_array.c | ||
test_chaos.c | ||
test_copy.c | ||
test_dump_callback.c | ||
test_dump.c | ||
test_equal.c | ||
test_load_callback.c | ||
test_load.c | ||
test_loadb.c | ||
test_memory_funcs.c | ||
test_number.c | ||
test_object.c | ||
test_pack.c | ||
test_simple.c | ||
test_sprintf.c | ||
test_unpack.c | ||
util.h |