- Feb 09, 2018
-
-
Petri Lehtinen authored
Original patch by @phst. Fixes #369.
-
- Dec 17, 2017
-
-
Petri Lehtinen authored
json_pack: Enable more complete stealing of references.
-
- Dec 14, 2017
-
-
Corey Farrell authored
The `O` format causes reference counts to increase, but in an error they are not released. Callers to unpack functions that use the `O` format should use pointers pre-initialized to NULL so they can safely release the reference on error. Also corrected typo which said this was like `O` (itself). Fixes #135
-
Corey Farrell authored
This function needs to release a reference to value if the other arguments are invalid. Issue #135
-
Corey Farrell authored
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
-
- Dec 13, 2017
-
-
Petri Lehtinen authored
Fixes akheron/jansson#373
-
Petri Lehtinen authored
Remove extra reference actions in parsers.
-
Petri Lehtinen authored
Document that length-aware string functions have been added in 2.7
-
- Dec 10, 2017
-
-
Philipp Stephani authored
-
- Nov 15, 2017
-
-
Corey Farrell authored
Make parse_object use json_object_set_new_nocheck and make parse_array use json_array_append_new, remove json_decref from error and success paths. Fixes #376
-
- Nov 07, 2017
-
-
Joe Hura authored
'sys/time.h' is a typo, it should read: 'sys/types.h'
-
Petri Lehtinen authored
Reported by Diederick Huijbers
-
- Oct 09, 2017
-
-
Petri Lehtinen authored
Use last byte of error text as numeric error code
-
- Oct 03, 2017
-
-
Philipp Stephani authored
Fixes #352
-
- Aug 20, 2017
-
-
Petri Lehtinen authored
Fixes #344
-
Petri Lehtinen authored
-
- Aug 06, 2017
-
-
Petri Lehtinen authored
json_dump_file API returns success even when fclose fails
-
Sanjay Kumar authored
json_dump_file API returns success even when fclose fails (consider disk full case). API should check the return value of fclose before returning success to its caller. fwrite may not write anything into the file, it simply returns the number of bytes written into the buffer. When disk is full and fclose is called, it results in truncation of the file (resulting in zero sized file). Since, API is returning success, its caller can't take any remedial action on its failure.
-
- Jul 21, 2017
-
-
Petri Lehtinen authored
Docs - Fix typo
-
- Jul 16, 2017
-
-
최재원 authored
-
- Apr 19, 2017
-
-
Petri Lehtinen authored
Enable optional object members in json_pack()
-
Nathaniel McCallum authored
-
- Apr 13, 2017
-
-
Petri Lehtinen authored
-
Petri Lehtinen authored
-
Mathieu Lirzin authored
This is more consistent with what is done for other pkg-config variables.
-
- Mar 29, 2017
-
-
Petri Lehtinen authored
CMakeLists.txt: Remove extra parenthesis
-
Petri Lehtinen authored
Fixes #333
-
- Mar 03, 2017
-
-
Nathaniel McCallum authored
-
- Mar 02, 2017
-
-
Petri Lehtinen authored
Add JSON_EMBED encoding flag
-
- Feb 28, 2017
-
-
Nathaniel McCallum authored
The JSON_EMBED encoding flag causes the opening and closing characters of the top-level array ('[', ']') or object ('{', '}') to be omitted during encoding. This feature makes it possible to concatenate multiple arrays or objects in the stream output. It also makes it possible to perform outputs of partial composes. One such example of a partial compose is when outputting a JWE object. The output is a JSON object. But it has one top-level attribute ("ciphertext") that can grow out of proportion with the rest of the metadata. With the JSON_EMBED flag, the other metadata can be composed ahead of time and dumped during the beginning of output, where the "ciphertext" and "tag" attributes can be streamed out in chunks. Thus, the header material can be composed with Jansson and the ciphertext itself can be composed manually.
-
- Jan 31, 2017
-
-
Petri Lehtinen authored
Helper functions for network IO
-
- Jan 27, 2017
-
-
Nathaniel McCallum authored
The primary use of these functions is easy loading and dumping from stream sockets. Signed-off-by:Nathaniel McCallum <npmccallum@redhat.com>
-
- Jan 26, 2017
-
-
Nathaniel McCallum authored
This function encodes the json_t object to a pre-allocated buffer. It compliments the already existing json_loadb() function and is useful for parsing JSON-RPC (among other protocols) when sent over datagram sockets. Signed-off-by:Nathaniel McCallum <npmccallum@redhat.com>
-
- Nov 16, 2016
-
-
Petri Lehtinen authored
parens for LONG_LONG_INT in cmake
-
- Nov 13, 2016
-
-
Brian Armstrong authored
when this is defined as "", cmake bails with an error about arguments in if
-
- Oct 25, 2016
-
-
Petri Lehtinen authored
part of conditional expression is always true (!done)
-
Petri Lehtinen authored
Fix passing redundant argument to error_set()
-
Petri Lehtinen authored
Allow parsing of buffers larger than 2GB on most 64 bit arch.
-
- Oct 19, 2016
-
-
Martin Lindhe authored
-
- Oct 07, 2016
-
-
Robert Mu authored
-