cJSON/tests
Lee 60ff122ef5
add NULL checkings (#809)
* add NULL checks in cJSON_SetValuestring

Fixes #803(CVE-2023-50472)

* add NULL check in cJSON_InsertItemInArray

Fixes #802(CVE-2023-50471)

* add tests for NULL checks

add tests for NULL checks in cJSON_InsertItemInArray and cJSON_SetValuestring
2023-12-18 11:47:52 +08:00
..
inputs Remove trailing space 2017-11-04 21:19:15 +08:00
json-patch-tests Update json-patch-tests 2018-10-11 00:30:43 +02:00
unity eliminate warning when compiling cJSON 2019-08-12 17:06:29 +08:00
CMakeLists.txt Add link dependency to fix tests link error when ENABLE_CJSON_UTILS is ON 2019-05-11 07:37:33 +08:00
cjson_add.c fix several null pointer problems on allocation failure (#526) 2020-11-12 11:46:15 +08:00
common.h Fix tests when building as static library 2017-11-28 16:44:24 +01:00
compare_tests.c update testcase, fixes #433 2020-04-02 16:24:10 +08:00
json_patch_tests.c Typos found by codespell (#607) 2021-08-25 15:01:12 +08:00
minify_tests.c Fix infinite loop in cJSON_Minify 2019-05-16 20:01:02 +02:00
misc_tests.c add NULL checkings (#809) 2023-12-18 11:47:52 +08:00
misc_utils_tests.c misc_utils_tests: call all utils function with NULL pointers 2017-06-28 16:01:20 +02:00
old_utils_tests.c fix encode_string_as_pointer 2020-03-18 16:04:58 +08:00
parse_array.c array's item should be in the list 2020-05-06 17:18:42 +08:00
parse_examples.c Added cJSON_ParseWithLength (#358) 2020-04-02 19:24:36 +08:00
parse_hex4.c Support default __stdcall calling convention on tests as well 2018-09-12 15:32:30 -05:00
parse_number.c Support default __stdcall calling convention on tests as well 2018-09-12 15:32:30 -05:00
parse_object.c Support default __stdcall calling convention on tests as well 2018-09-12 15:32:30 -05:00
parse_string.c Support default __stdcall calling convention on tests as well 2018-09-12 15:32:30 -05:00
parse_value.c Support default __stdcall calling convention on tests as well 2018-09-12 15:32:30 -05:00
parse_with_opts.c Support default __stdcall calling convention on tests as well 2018-09-12 15:32:30 -05:00
print_array.c Support default __stdcall calling convention on tests as well 2018-09-12 15:32:30 -05:00
print_number.c fix issue#327 2019-11-28 09:56:04 +08:00
print_object.c Support default __stdcall calling convention on tests as well 2018-09-12 15:32:30 -05:00
print_string.c Support default __stdcall calling convention on tests as well 2018-09-12 15:32:30 -05:00
print_value.c Support default __stdcall calling convention on tests as well 2018-09-12 15:32:30 -05:00
readme_examples.c docs: fix simple typo, transfering -> transferring (#527) 2020-11-16 08:57:02 +08:00
unity_setup.c Add newline to end of unity_setup.c 2018-09-17 09:10:20 -05:00