Files
openGauss-third_party/dependency/cJSON/CVE-2024-31755.patch
2024-05-27 11:27:47 +08:00

13 lines
365 B
Diff

diff -Naur a/cJSON.c b/cJSON.c
--- a/cJSON.c 2024-05-27 11:17:06.041240225 +0800
+++ b/cJSON.c 2024-05-27 11:19:35.927227504 +0800
@@ -406,7 +406,7 @@
return NULL;
}
/* return NULL if the object is corrupted */
- if (object->valuestring == NULL)
+ if (object->valuestring == NULL || valuestring == NULL)
{
return NULL;
}