]> git.feebdaed.xyz Git - 0xmirror/cJSON.git/commit
add NULL checkings (#809)
authorLee <peterlee@apache.org>
Mon, 18 Dec 2023 03:47:52 +0000 (11:47 +0800)
committerGitHub <noreply@github.com>
Mon, 18 Dec 2023 03:47:52 +0000 (11:47 +0800)
commit60ff122ef5862d04b39b150541459e7f5e35add8
treef939e6a65723a7a2fdc93cb636e3190c5f7a2c16
parentcb8693b058ba302f4829ec6d03f609ac6f848546
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
cJSON.c
tests/misc_tests.c