0c3588330a
Set error codes for truncating int conversions
Simon Resch2024-11-26 20:42:29 +01:00
8c13801f2c
Explicitly handle NaN values when converting to int
Simon Resch2024-11-14 13:47:18 +01:00
c63d4a4194
Merge pull request #878 from 0xfadead/readme-fix-underline
Eric Hawicz2024-11-23 19:39:50 -05:00
77bb5c54fc
Merge pull request #883 from simonresch/add-oss-fuzz-tests
Eric Hawicz2024-11-23 19:39:13 -05:00
839fbe0d63
Add fuzz tests for json_object/point/array apis
Simon Resch2024-11-08 22:20:40 -05:00
ff8ed0f094
Issue #881: don't allow json_tokener_new_ex() with a depth < 1
Eric Hawicz2024-11-17 22:11:24 -05:00
565f181f65
Fix issue #875: cast to unsigned char so bytes above 0x7f aren't interpreted as negative, which was causing the strict-mode control characters check to incorrectly trigger.
Eric Hawicz2024-11-08 22:20:40 -05:00
828c12b226
Handle NULL gracefully in json_tokener_free
Ján Tomko2024-11-06 15:19:04 +01:00
474ee12435
Fix the apps/json_parse "-s" (strict) option so it actually does something, and default to non-strict.
Eric Hawicz2024-11-03 19:44:21 -05:00
7fb43410af
Take 2 fixing the placement of json_tokener_error_memory in the enum. (json_tokener_error_size is an actual error, *not* a measure of the size of the enum!)
json-c-0.17
Eric Hawicz2023-09-22 22:26:21 -04:00
6e481aa061
Merge pull request #861 from bhaible/handle-another-oom-condition
Eric Hawicz2024-05-05 09:49:26 -04:00
781675758f
Although CMAKE_C_COMPILER_FRONTEND_VARIANT is defined, it's not always set to some value. Fix builds for cases when it's blank.
Eric Haszlakiewicz2024-04-28 17:15:42 +00:00
833233faa8
Handle yet another out-of-memory condition.
Bruno Haible2024-04-22 01:50:59 +02:00
31a22fb2da
Issue #857: fix a few places where json_tokener should have been returning json_tokener_error_memory but wasn't.
Eric Hawicz2024-04-21 10:37:16 -04:00
e93ae70417
Fix issue #854: Set error=json_tokener_error_memory in json_tokener_parser_verbose() when allocating the tokener fails.
Eric Hawicz2024-03-29 18:09:12 -04:00
0bc2dd5e60
Merge pull request #852 from fedefrancescon/docs/micro-typo-fix
Eric Hawicz2024-03-02 17:31:24 -05:00
407ddb4350
Issue #842 - fix one particular sign conversion warning. There are many others that show up if we were to add -Wsign-conversions, but this is the only one using a literal constant.
Eric Haszlakiewicz2023-11-30 13:59:13 +00:00
88bce2b38e
Merge pull request #837 from HansolChoe/fix-tokener-parse-ex-fuzzer
Eric Hawicz2023-10-19 07:49:32 -04:00
a907f7dd1b
tokener_parse_ex_fuzzer: add type checking for parsed object
HansolChoe2023-10-19 16:33:01 +09:00
ad8b8afa7d
Take 2 fixing the placement of json_tokener_error_memory in the enum. (json_tokener_error_size is an actual error, *not* a measure of the size of the enum!)
Eric Hawicz2023-09-22 22:26:21 -04:00
12ea386989
Add an abi-check.sh script that shows how to run the abi-compliance-checker, update release creation steps slightly.
Eric Hawicz2023-08-12 14:34:35 -04:00
6dd8618170
Also fix messages returned from json_tokener_error_desc() (broke due to the ordering change of enum json_tokener_error)
Eric Haszlakiewicz2023-08-12 18:52:32 +00:00
3dad6941da
Move the json_tokener_error_memory entry to the end of enum json_tokener_error to restore binary compatibility with 0.16
Eric Hawicz2023-08-12 13:54:50 -04:00
f7e9d8e216
Update the AUTHORS file and add issues_closed_for_0.17.md for the upcoming 0.17 release
Eric Hawicz2023-08-12 13:53:27 -04:00
85ed501a3d
Update the ChangeLog for 0.17 based on notable commits since 0.16
Eric Hawicz2023-08-08 17:31:38 -04:00
077661f3d1
Fix issue #823: add back json_number_chars, but only because it's part of the public API.
Eric Hawicz2023-08-06 15:35:04 -04:00
612ba56f06
Don't export json_pointer_get_internal, move json_object_array_insert_idx and json_patch_apply to the JSONC_0.17 section in json-c.sym
Eric Hawicz2023-07-29 21:45:16 -04:00
469bc0e4bb
Work around a somewhat misleading warning about "a function declaration without a prototype is deprecated in all versions of C" in test1.c
Eric Hawicz2023-07-29 11:22:12 -04:00
ce3184243a
Fix json_patch_apply handling of removing the whole document (i.e. "path":""). Enable all disabled tests, add a few more including some with null documents.
Eric Hawicz2023-07-28 22:12:51 -04:00
9dbf2880cc
Adjust the behavior of the args passed to json_patch_apply to make it easier to do in place modifications, and add a struct json_patch_error to report more details on failures.
Eric Hawicz2023-07-26 22:01:04 -04:00
a14a3a680c
Fix an uninitialized memory access in json_pointer. Add comments describing when the fields of the internal struct json_pointer_get_result are valid.
Eric Hawicz2023-07-26 18:15:07 -04:00
efc530594b
Create a json_pointer_private.h and move a few things there, fix test warnings, note array_list_insert_idx is private.
Eric Hawicz2023-07-16 10:48:20 -04:00