mirror of
https://github.com/DaveGamble/cJSON.git
synced 2026-11-21 20:01:49 +00:00
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.
This commit is contained in:
1 parent
87d8f0961a
commit
7e4d5dabe7
1 file changed
+1
-1
Reference in new issue
Block a user