Skip to content

Releases: DaveGamble/cJSON

1.7.8

21 Sep 17:30
Compare
Choose a tag to compare

Fixes:

  • cJSON now works with the __stdcall calling convention on Windows, see #295, thanks @zhindes for contributing

1.7.7

21 May 20:09
Compare
Choose a tag to compare

Fixes:

  • Fix a memory leak when realloc fails (see #267), thanks @AlfieDeng for reporting
  • Fix a typo in the header file (see #266), thanks @zhaozhixu

1.7.6

13 Apr 04:37
Compare
Choose a tag to compare

Fixes:

  • Add SONAME to the ELF files built by the Makefile (see #252), thanks @YanhaoMo for reporting
  • Add include guards and extern "C" to cJSON_Utils.h (see #256), thanks @daschfg for reporting

Other changes:

  • Mark the Makefile as deprecated in the README.

1.7.5

22 Mar 19:33
Compare
Choose a tag to compare

Fixes:

  • Fix a bug in the JSON Patch implementation of cJSON Utils (see #251), thanks @bobkocisko.

1.7.4

02 Mar 19:11
6f264b5
Compare
Choose a tag to compare

Fixes:

  • Fix potential use after free if the string parameter to cJSON_AddItemToObject is an alias of the string property of the object that is added (#248). Thanks @hhallen for reporting.

1.7.3

07 Feb 20:38
Compare
Choose a tag to compare

Fixes:

1.7.2

06 Feb 10:59
Compare
Choose a tag to compare

Fixes:

  • Fix the use of GNUInstallDirs variables and the pkgconfig file. Thanks @zeerd for reporting (see #240)

1.7.1

09 Jan 21:35
7cc52f6
Compare
Choose a tag to compare

Fixes:

  • Fixed an Off-By-One error that could lead to an out of bounds write. Thanks @liuyunbin for reporting (see #230)
  • Fixed two errors with buffered printing. Thanks @liuyunbin for reporting (see #230)

1.7.0

31 Dec 01:24
984dc85
Compare
Choose a tag to compare

Features:

  • Large rewrite of the documentation, see #215
  • Added the cJSON_GetStringValue function
  • Added the cJSON_CreateStringReference function
  • Added the cJSON_CreateArrayReference function
  • Added the cJSON_CreateObjectReference function
  • The cJSON_Add...ToObject macros are now functions that return a pointer to the added item, see #226

Fixes:

  • Fix a problem with GNUInstallDirs in the CMakeLists.txt, thanks @yangfl, see #210
  • Fix linking the tests when building as static library, see #213
  • New overrides for the CMake option BUILD_SHARED_LIBS, see #207

Other Changes:

1.6.0

08 Oct 21:39
Compare
Choose a tag to compare

Features:

  • You can now build cJSON as both shared and static library at once with CMake using -DBUILD_SHARED_AND_STATIC_LIBS=On, see #178
  • UTF-8 byte order marks are now ignored, see #184
  • Locales can now be disabled with the option -DENABLE_LOCALES=Off, see #202, thanks @Casperinous
  • Better support for MSVC and Visual Studio

Other Changes:

  • Add the new warnings -Wswitch-enum, -Wused-but-makred-unused, -Wmissing-variable-declarations, -Wunused-macro
  • More number printing tests.
  • Continuous integration testing with AppVeyor (semi automatic at this point), thanks @simon-p-r