- Nov 26, 2018
-
-
Petri Lehtinen authored
-
Petri Lehtinen authored
jansson 2.12
-
- Nov 25, 2018
-
-
Corey Farrell authored
-
Corey Farrell authored
Update/install readme
-
vsoch authored
-
vsoch authored
-
- Nov 09, 2018
-
-
Corey Farrell authored
Remove inappropriate jsonp_free which caused segmentation fault.
-
- Nov 06, 2018
-
-
Corey Farrell authored
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
-
- Oct 17, 2018
-
-
Corey Farrell authored
removed various warnings
-
- Oct 15, 2018
-
-
Maximilian Röhrle authored
-
Maximilian Röhrle authored
-
- Sep 30, 2018
-
-
Corey Farrell authored
Fix code coverage ignored paths.
-
Corey Farrell authored
* Replace 'tests/*' with '*/test/*'. * Replace '/usr/*' with '/usr/include/*'. This resolves an issue where it was impossible to test code coverage with the source in /usr/src. * Ignore build/include/jansson.h as we just want src/jansson.h.
-
- Sep 29, 2018
-
-
Corey Farrell authored
json_pack: Improve handling of formats with '?' and '*'.
-
- Sep 26, 2018
-
-
Corey Farrell authored
* Remove errant line-feed from pack_object error message. * Correct error message in pack_object_inter. * Create pack_integer / pack_real to get the correct error messages on failure when packing numeric values. * Add tests for packing NAN and infinity directly, in an array and as an object value.
-
Corey Farrell authored
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
-
- Sep 04, 2018
-
-
Petri Lehtinen authored
unreferenced variable fix
-
- Aug 31, 2018
-
-
Maximilian Röhrle authored
-
- Aug 30, 2018
-
-
- Aug 12, 2018
-
-
Petri Lehtinen authored
Fixes #430
-
- Aug 09, 2018
-
-
Michal Privoznik authored
It was discovered fairly recently that JSON parsing libraries use common pattern to name their exported symbols (they all use json_ prefix). So eventually it happens that two symbols from two different libraries have the same name. This will lead to cryptic crashes (see [1] and [2]). Linking with -Bsymbolic-functions prevents this. 1: https://gitlab.gnome.org/GNOME/json-glib/issues/33 2: https://groups.google.com/forum/#!topic/jansson-users/7Efx-RI45IU Signed-off-by:
Michal Privoznik <mprivozn@redhat.com>
-
- Aug 02, 2018
-
-
Petri Lehtinen authored
Deal with warnings under gcc 8.
-
- Jul 30, 2018
-
-
Petri Lehtinen authored
Update copyright for 2018
-
Petri Lehtinen authored
Call va_end after va_copy in json_vsprintf
-
- Jul 25, 2018
-
-
Xin Long authored
As said in man doc: "Each invocation of va_copy() must be matched by a corresponding invocation of va_end() in the same function." va_copy may alloc memory in some system, it's necessay to free it by va_end. Fixes: efe6c7b3 ("Add json_sprintf and json_vsprintf") Signed-off-by:
Xin Long <lucien.xin@gmail.com>
-
- Jul 15, 2018
-
-
Crayon authored
-
Corey Farrell authored
Recent versions of gcc have introduced compiler warnings for string operations that could be truncated. This caused problems with -Werror. src/error.c used strncpy to write "..." to a string, but skipped writing the NUL terminator. Switch this to use memcpy. src/load.c produced warnings from snprintf writing error strings that could be truncated. Added code to autotools build to detect `-Wno-format-truncation', add it to AM_CFLAGS if supported.
-
- Jul 10, 2018
-
-
Petri Lehtinen authored
Initial patch by @bharjoc-bitdefender Fixes #421
-
- May 22, 2018
-
-
Petri Lehtinen authored
CMake variable to number comparison changed to provide meaningful error
-
- May 18, 2018
-
-
Cameron Lowell Palmer authored
message. Explicitly specify STATIC and PIC
-
Petri Lehtinen authored
CMake improvements, make package relocatable
-
- May 07, 2018
-
-
Petri Lehtinen authored
Appveyor & build instructions for Visual Studio 15 2017
-
Petri Lehtinen authored
-
Petri Lehtinen authored
-
Petri Lehtinen authored
Fix JSON_HAVE_SYNC_BUILTINS define usage
-
- Mar 22, 2018
-
-
Maxim Zhukov authored
Added JSON_HAVE_SYNC_BUILTINS and JSON_HAVE_ATOMIC_BUILTINS defines to jansson_config.h.cmake as well as in the autoheader for autoconf.
-
Petri Lehtinen authored
Fix error handling in json_pack
-
Maxim Zhukov authored
Fixed a bug where the error message was not filled if an empty object was passed to the json_pack. Fixes #271
-
- Mar 20, 2018
-
-
Petri Lehtinen authored
Build: Add JANSSON_ATTRS macro.
-
- Mar 11, 2018
-
-
Isaac Hier authored
-