DaveGamble / cJSON

Ultralightweight JSON parser in ANSI C
MIT License
10.28k stars 3.15k forks source link

add NULL checks to cJSON_DetachItemViaPointer() #835

Open x2018 opened 4 months ago

x2018 commented 4 months ago

Add NULL checks to cJSON_DetachItemViaPointer() in case its input is incomplete, so to prevent unintentional crash.