Skip to content

Releases: DaveGamble/cJSON

1.4.7

18 Apr 19:50
Compare
Choose a tag to compare

Fixes:

  • Fix cJSONUtils_ApplyPatches, it was completely broken and apparently nobody noticed (or at least reported it) (075a06f)
  • Fix inconsistent prototype for cJSON_GetObjectItemCaseSensitive (51d3df6) thanks @PawelWMS

1.4.6

08 Apr 21:42
Compare
Choose a tag to compare

Fixes:

  • Several corrections in the README
  • Making clear that valueint should not be written to
  • Fix overflow detection in ensure (2683d4d)
  • Fix a potential null pointer dereference in cJSON_Utils (795c3ac)
  • Replace incorrect sizeof('\0') with sizeof("") (84237ff)
  • Add caveats section to the README (50b3c30)
  • Make cJSON locale independent (#146) Thanks @peterh for reporting
  • Fix compiling without CMake with MSVC (#147) Thanks @dertuxmalwieder for reporting

1.4.5

28 Mar 15:40
Compare
Choose a tag to compare

Fixes:

1.4.4

23 Mar 21:18
Compare
Choose a tag to compare

Fixes:

  • Fix a theoretical integer overflow, (not sure if it is possible on actual hardware) e58f7ec
  • Fix an off by one error (cc84a44), thanks @gatzka
  • Double check the offset of the print buffer in ensure (1934059)

Improvements:

  • Add a note in the header about required buffer size when using cJSON_PrintPreallocated (4bfb880)

1.4.3

19 Mar 10:13
Compare
Choose a tag to compare

Fixes:

  • Fix compilation of the tests on 32 bit PowerPC and potentially other systems (4ec6e76)
  • Fix compilation with old GCC compilers (4.3+ were tested) (227d339, 466eb8e), see also #126

1.4.2

16 Mar 00:31
Compare
Choose a tag to compare

Fixes:

  • Fix minimum required cmake version (30e1e7a)
  • Fix detection of supported compiler flags (76e5296)
  • Run cJSON_test and cJSON_test_utils along with unity tests (c597601)

1.4.1

15 Mar 19:20
Compare
Choose a tag to compare

Fix: Make print_number abort with a failure in out of memory situations (cf1842d)

1.4.0

04 Mar 13:12
Compare
Choose a tag to compare

Features

  • Functions to check the type of an item (#120)
  • Use dllexport on windows and fvisibility on Unix systems for public functions (#116), thanks @mjerris
  • Remove trailing zeroes from printed numbers (#123)
  • Expose the internal boolean type cJSON_bool in the header (2d3520e)

Fixes

  • Fix handling of NULL pointers in cJSON_ArrayForEach (b47d0e3)
  • Make it compile with GCC 7 (fix -Wimplicit-fallthrough warning) (9d07917)

Other Improvements

  • internally use realloc if available (#110)
  • builtin support for fuzzing with afl (#111)
  • unit tests for the print functions (#112)
  • Always use buffered printing (#113)
  • simplify the print functions (#114)
  • Add the compiler flags -Wdouble-conversion, -Wparentheses and -Wcomma (#122)

1.3.2

28 Feb 21:11
Compare
Choose a tag to compare

Fix:

  • Don't build the unity library if testing is disabled ( #121 ). Thanks @ffontaine

1.3.1

26 Feb 21:09
Compare
Choose a tag to compare

Bugfix release that fixes an out of bounds read #118. This shouldn't have any security implications.