mirror of https://github.com/DaveGamble/cJSON
Compare commits
4 Commits
6374209290
...
1e43d3d87f
Author | SHA1 | Date |
---|---|---|
ZhaoYandong00 | 1e43d3d87f | |
Alan Wang | 66e9dff670 | |
Up-wind | 7e4d5dabe7 | |
ZhaoYandong00 | 071f8ab633 |
|
@ -0,0 +1,11 @@
|
|||
# Security Policy
|
||||
|
||||
## Supported Versions
|
||||
|
||||
Security is of the highest importance and all security vulnerabilities or suspected security vulnerabilities should be reported to mavonEditor team privately, to minimize attacks against current users of mavonEditor before they are fixed. Vulnerabilities will be investigated and patched on the next patch (or minor) release as soon as possible. This information could be kept entirely internal to the project.
|
||||
|
||||
## Reporting a Vulnerability
|
||||
|
||||
If you know of a publicly disclosed security vulnerability for mavonEditor, please IMMEDIATELY contact wp_scut@163.com and peterlee@apache.org to inform the mavonEditor Team.
|
||||
|
||||
IMPORTANT: Do not file public issues on GitHub for security vulnerabilities.
|
4
cJSON.c
4
cJSON.c
|
@ -406,11 +406,11 @@ CJSON_PUBLIC(char*) cJSON_SetValuestring(cJSON *object, const char *valuestring)
|
|||
return NULL;
|
||||
}
|
||||
/* return NULL if the object is corrupted */
|
||||
if (object->valuestring == NULL)
|
||||
if (object->valuestring == NULL || valuestring == NULL)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
if (strlen(valuestring) <= strlen(object->valuestring))
|
||||
if (object->valuestring && (strlen(valuestring) <= strlen(object->valuestring)))
|
||||
{
|
||||
strcpy(object->valuestring, valuestring);
|
||||
return object->valuestring;
|
||||
|
|
Loading…
Reference in New Issue