cJSON icon indicating copy to clipboard operation
cJSON copied to clipboard

Add NULL check to cJSON_SetValuestring()

Open Up-wind opened this issue 4 months ago • 0 comments

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.

fixes: #839

Up-wind avatar Mar 25 '24 12:03 Up-wind