mirror of
https://github.com/DaveGamble/cJSON.git
synced 2024-12-25 20:30:50 +08:00
Release 1.7.18
This commit is contained in:
parent
5b502cdbfb
commit
76be8fcf15
10
CHANGELOG.md
10
CHANGELOG.md
@ -1,3 +1,13 @@
|
|||||||
|
1.7.18 (May 13, 2024)
|
||||||
|
======
|
||||||
|
Fixes:
|
||||||
|
------
|
||||||
|
* Add NULL check to cJSON_SetValuestring()(CVE-2024-31755), see #839 and #840
|
||||||
|
* Remove non-functional list handling of compiler flags, see #851
|
||||||
|
* Fix heap buffer overflow, see #852
|
||||||
|
* remove misused optimization flag -01, see #854
|
||||||
|
* Set free'd pointers to NULL whenever they are not reassigned immediately after, see #855 and #833
|
||||||
|
|
||||||
1.7.17 (Dec 26, 2023)
|
1.7.17 (Dec 26, 2023)
|
||||||
======
|
======
|
||||||
Fixes:
|
Fixes:
|
||||||
|
@ -2,7 +2,7 @@ set(CMAKE_LEGACY_CYGWIN_WIN32 0)
|
|||||||
cmake_minimum_required(VERSION 3.0)
|
cmake_minimum_required(VERSION 3.0)
|
||||||
|
|
||||||
project(cJSON
|
project(cJSON
|
||||||
VERSION 1.7.17
|
VERSION 1.7.18
|
||||||
LANGUAGES C)
|
LANGUAGES C)
|
||||||
|
|
||||||
cmake_policy(SET CMP0054 NEW) # set CMP0054 policy
|
cmake_policy(SET CMP0054 NEW) # set CMP0054 policy
|
||||||
|
2
Makefile
2
Makefile
@ -8,7 +8,7 @@ CJSON_TEST_SRC = cJSON.c test.c
|
|||||||
|
|
||||||
LDLIBS = -lm
|
LDLIBS = -lm
|
||||||
|
|
||||||
LIBVERSION = 1.7.17
|
LIBVERSION = 1.7.18
|
||||||
CJSON_SOVERSION = 1
|
CJSON_SOVERSION = 1
|
||||||
UTILS_SOVERSION = 1
|
UTILS_SOVERSION = 1
|
||||||
|
|
||||||
|
2
cJSON.c
2
cJSON.c
@ -117,7 +117,7 @@ CJSON_PUBLIC(double) cJSON_GetNumberValue(const cJSON * const item)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* This is a safeguard to prevent copy-pasters from using incompatible C and header files */
|
/* This is a safeguard to prevent copy-pasters from using incompatible C and header files */
|
||||||
#if (CJSON_VERSION_MAJOR != 1) || (CJSON_VERSION_MINOR != 7) || (CJSON_VERSION_PATCH != 17)
|
#if (CJSON_VERSION_MAJOR != 1) || (CJSON_VERSION_MINOR != 7) || (CJSON_VERSION_PATCH != 18)
|
||||||
#error cJSON.h and cJSON.c have different versions. Make sure that both have the same.
|
#error cJSON.h and cJSON.c have different versions. Make sure that both have the same.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
2
cJSON.h
2
cJSON.h
@ -81,7 +81,7 @@ then using the CJSON_API_VISIBILITY flag to "export" the same symbols the way CJ
|
|||||||
/* project version */
|
/* project version */
|
||||||
#define CJSON_VERSION_MAJOR 1
|
#define CJSON_VERSION_MAJOR 1
|
||||||
#define CJSON_VERSION_MINOR 7
|
#define CJSON_VERSION_MINOR 7
|
||||||
#define CJSON_VERSION_PATCH 17
|
#define CJSON_VERSION_PATCH 18
|
||||||
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user