jansson/test/suites
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
..
api json_pack: Enable more complete stealing of references. 2017-12-13 14:03:58 -05: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