jansson/test/suites/api
Corey Farrell 9a1d9c88fc json_pack: Enable more complete stealing of references.
Users of the "o" format have an expectation that the object reference
will be stolen.  Any error causes the collection process to end early.
This patch causes json_pack and related functions to continue scanning
the format and parameters so all references can be stolen to prevent
leaks.  This makes no attempt to continue processing if the format
string is broken or missing.

'make check' still passes.  Ran test_pack under valgrind and verified
that the leaked reference is fixed. Added a test which uses refcounts
to verify that the reference was correctly stolen after a NULL value
error.

Issue #135
2017-12-13 14:03:58 -05:00
..
check-exports check-exports test: Filter out symbols that start with an underscore 2013-02-05 12:48:38 +02:00
Makefile.am Enable gcc specific flags in tests correctly 2013-02-04 09:49:58 +02:00
run Update copyrights for 2016 2016-09-18 14:17:03 +03:00
test_array.c Update copyrights for 2016 2016-09-18 14:17:03 +03:00
test_copy.c Update copyrights for 2016 2016-09-18 14:17:03 +03:00
test_dump_callback.c Update copyrights for 2016 2016-09-18 14:17:03 +03:00
test_dump.c Add JSON_EMBED encoding flag 2017-02-27 15:09:03 -05:00
test_equal.c Update copyrights for 2016 2016-09-18 14:17:03 +03:00
test_load_callback.c Document and tweak json_load_callback() 2012-03-26 21:53:21 +03:00
test_load.c Use last byte of error text as numeric error code 2017-10-03 11:42:07 +02:00
test_loadb.c Update copyrights for 2016 2016-09-18 14:17:03 +03:00
test_memory_funcs.c Conform to c89 2016-08-11 18:51:29 +03:00
test_number.c Update copyrights for 2016 2016-09-18 14:17:03 +03:00
test_object.c Update copyrights for 2016 2016-09-18 14:17:03 +03:00
test_pack.c json_pack: Enable more complete stealing of references. 2017-12-13 14:03:58 -05:00
test_simple.c Update copyrights for 2016 2016-09-18 14:17:03 +03:00
test_unpack.c Use last byte of error text as numeric error code 2017-10-03 11:42:07 +02:00
util.h Use last byte of error text as numeric error code 2017-10-03 11:42:07 +02:00