Skip to content

Releases: DaveGamble/cJSON

1.5.9

08 Sep 11:56
Compare
Choose a tag to compare
  • Set the global error pointer even if return_parse_end is passed to cJSON_ParseWithOpts. See #200, thanks @rmallins

1.5.8

21 Aug 09:09
Compare
Choose a tag to compare
  • Fix make test in the Makefile, thanks @YanhaoMo for reporting this (#195)

1.5.7

12 Jul 21:16
Compare
Choose a tag to compare

Fixes:

  • Fix a bug where realloc failing would return a pointer to an invalid memory address. This is a security issue as it could potentially be used by an attacker to write to arbitrary memory addresses. (see #189), fixed in (954d61e), big thanks @timothyjohncarney for reporting this issue
  • Fix a spelling mistake in the AFL fuzzer dictionary (#185), thanks @jwilk

1.5.6

28 Jun 14:36
Compare
Choose a tag to compare

Fixes:

  • Make cJSON a lot more tolerant about passing NULL pointers to its functions, it should now fail safely instead of dereferencing the pointer. (#183) Thanks @msichal for reporting #182

1.5.5

14 Jun 16:07
Compare
Choose a tag to compare

Fixes:

  • Fix pointers to nested arrays in cJSON_Utils (9abe75e)
  • Fix an error with case sensitivity handling in cJSON_Utils (b9cc911)
  • Fix cJSON_Compare for arrays that are prefixes of the other and objects that are a subset of the other (03ba72f) See #180, thanks @zhengqb for reporting

1.5.4

04 Jun 19:32
Compare
Choose a tag to compare

Fixes:

  • Fix build with GCC 7.1.1 and optimization level -O2 (bfbd8fe)

Other Changes:

  • Update Unity to 3b69beaa58efc41bbbef70a32a46893cae02719d

1.5.3

22 May 21:28
Compare
Choose a tag to compare

Fixes:

  • Fix cJSON_ReplaceItemInObject not keeping the name of an item (#174)

1.5.2

10 May 00:31
Compare
Choose a tag to compare

Fixes:

  • Fix a reading buffer overflow in parse_string (a167d9e)
  • Fix compiling with -Wcomma (186cce3)
  • Remove leftover attribute from tests (b537ca7)

1.5.1

06 May 06:46
Compare
Choose a tag to compare

Fixes:

  • Add gcc version guard to the Makefile (#164), thanks @juvasquezg
  • Fix incorrect free in cJSON_Utils if custom memory allocator is used (#166), thanks @prefetchnta

1.5.0

02 May 00:43
Compare
Choose a tag to compare

Features:

  • cJSON finally prints numbers without losing precision (#153) thanks @DeboraG
  • cJSON_Compare recursively checks if two cJSON items contain the same values (#148)
  • Provide case sensitive versions of every function where it matters (#158, #159)
  • Added cJSON_ReplaceItemViaPointer and cJSON_DetachItemViaPointer
  • Added cJSON_free and cJSON_malloc that expose the internal configured memory allocators. (02a05ee)

Enhancements:

  • Parse into a buffer, this will allow parsing \u0000 in the future (not quite yet though)
  • General simplifications and readability improvements
  • More unit tests
  • Update unity testing library to 2.4.1
  • Add the json-patch-tests test suite to test cJSON_Utils.
  • Move all tests from test_utils.c to unit tests with unity.

Fixes:

  • Fix some warnings with the Microsoft compiler (#139) thanks @PawelWMS
  • Fix several bugs in cJSON_Utils, mostly found with json-patch-tests
  • Prevent a stack overflow by specifying a maximum nesting depth CJSON_NESTING_LIMIT