jansson/src
Tobias Stoeckmann 38b001edbd Handle vsnprintf corner cases.
The function vsnprintf returns a negative value on error, e.g. on
an invalid format. It's best to return NULL in such a case.

Also avoid a signed integer overflow if vsnprintf returns INT_MAX.
This is undefined behaviour in C and has to be avoided.

A negative value is returned with a call like:
json_sprintf("%111111111111111s", "", "");

INT_MAX is returned with a call like:
json_sprintf("%647s%2147483000s", "", "");
2020-05-23 12:34:40 +02:00
..
dump.c Tweak clang-format configuration a bit 2019-10-21 08:56:03 +03:00
error.c Tweak clang-format configuration a bit 2019-10-21 08:56:03 +03:00
hashtable_seed.c Tweak clang-format configuration a bit 2019-10-21 08:56:03 +03:00
hashtable.c Tweak clang-format configuration a bit 2019-10-21 08:56:03 +03:00
hashtable.h Tweak clang-format configuration a bit 2019-10-21 08:56:03 +03:00
jansson_config.h.in Use thread-safe reference counting if supported by the compiler. 2018-01-29 14:17:58 -05:00
jansson_private.h Tweak clang-format configuration a bit 2019-10-21 08:56:03 +03:00
jansson.def Add json_object_update_recursive() 2019-10-11 11:20:25 +08:00
jansson.h jansson 2.13.1 2020-05-07 21:38:59 +03:00
load.c Tweak clang-format configuration a bit 2019-10-21 08:56:03 +03:00
lookup3.h Run clang-format on *.c, *.h 2019-10-21 08:55:01 +03:00
Makefile.am jansson 2.13.1 2020-05-07 21:38:59 +03:00
memory.c Run clang-format on *.c, *.h 2019-10-21 08:55:01 +03:00
pack_unpack.c Tweak clang-format configuration a bit 2019-10-21 08:56:03 +03:00
strbuffer.c Tweak clang-format configuration a bit 2019-10-21 08:56:03 +03:00
strbuffer.h Run clang-format on *.c, *.h 2019-10-21 08:55:01 +03:00
strconv.c Tweak clang-format configuration a bit 2019-10-21 08:56:03 +03:00
utf.c Tweak clang-format configuration a bit 2019-10-21 08:56:03 +03:00
utf.h Run clang-format on *.c, *.h 2019-10-21 08:55:01 +03:00
value.c Handle vsnprintf corner cases. 2020-05-23 12:34:40 +02:00
version.c Run clang-format on *.c, *.h 2019-10-21 08:55:01 +03:00