e262ea5fcd
pack_string should never free str on error. This wouldn't be a problem except the check for `ours` was inverted. Just remove the check for ours since the true condition is unreachable. json_vpack_ex also had an error check for s.has_error. This can never be true unless value is NULL. Expand pack_unpack testing to cover empty format string, NULL object value with non-null concatenated key, array containing a non-null object after a NULL (error) string. Fixes #444 |
||
---|---|---|
.. | ||
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 |