]> git.feebdaed.xyz Git - 0xmirror/cJSON.git/commit
Add NULL check to cJSON_SetValuestring()
authorUp-wind <lj.upwind@gmail.com>
Mon, 25 Mar 2024 12:07:11 +0000 (20:07 +0800)
committerAlan Wang <wp_scut@163.com>
Fri, 26 Apr 2024 08:34:05 +0000 (16:34 +0800)
commit7e4d5dabe7a9b754c601f214e65b544e67ba9f59
treecda0e6135e8ff718f46709ac4c751b30548e7823
parent87d8f0961a01bf09bef98ff89bae9fdec42181ee
Add NULL check to cJSON_SetValuestring()

If the valuestring passed to cJSON_SetValuestring is NULL, a null pointer dereference will happen.

This commit adds the NULL check of valuestring before it is dereferenced.
cJSON.c