All Versions
Latest Version
Avg Release Cycle
68 days
Latest Release
832 days ago

Changelog History
Page 1

  • v1.7.15 Changes

    August 25, 2021

    ๐Ÿ›  Fixes:

    • ๐Ÿ›  Fix potential core dumped for strrchr, see #546
    • ๐Ÿ›  Fix null pointer crash in cJSON_CreateXxArray, see #538
    • ๐Ÿ›  Fix several null pointer problems on allocation failure, see #526
    • ๐Ÿ›  Fix a possible dereference of null pointer, see #519
    • ๐Ÿ›  Fix windows build failure about defining nan, see #518
  • v1.7.14 Changes

    September 03, 2020


    Since v1.7.13 changed the stucture of linkedlist to improve the efficiency of adding item to array/object, array->child->prev now is point to tail node, this won't change any behavior except for backward through the linkedlist.
    The current backward through the linkedlist could be in this way:

    cJSON *last = ...; // the last is known
    cJSON *current_item = last;
    do {
        current_item = current_item->prev;
    } while(current_item != last);

    ๐Ÿ›  Fixes:

    • โšก๏ธ optimize the way to find tail node, see #503
    • ๐Ÿ›  Fix WError error on macosx because NAN is a float. Thanks @sappo, see #484
    • ๐Ÿ›  Fix some bugs in detach and replace. Thanks @miaoerduo, see #456
  • v1.7.13 Changes

    April 02, 2020

    ๐Ÿ”‹ Features:

    • โž• add new API of cJSON_ParseWithLength without breaking changes. Thanks @caglarivriz, see #358
    • โž• add new API of cJSON_GetNumberValue. Thanks @Intuition, see#385
    • โž• add uninstall target function for CMake. See #402
    • ๐Ÿ‘Œ Improve performance of adding item to array. Thanks @xiaomianhehe, see #430, #448
    • โž• add new API of cJSON_SetValuestring, for changing the valuestring safely. See #451
    • โž• add return value for cJSON_AddItemTo... and cJSON_ReplaceItem... (check if the operation successful). See #453

    ๐Ÿ›  Fixes:

    • ๐Ÿ›  Fix clang -Wfloat-equal warning. Thanks @paulmalovanyi, see #368
    • ๐Ÿ›  Fix make failed in mac os. See #405
    • ๐Ÿ›  Fix memory leak in cJSONUtils_FindPointerFromObjectTo. Thanks @andywolk for reporting, see #414
  • v1.7.12 Changes

    May 16, 2019

    ๐Ÿ›  Fixes:

    • ๐Ÿ›  Fix infinite loop in cJSON_Minify (potential Denial of Service), thanks @Alanscut for reporting. See #354
    • ๐Ÿ›  Fix link error for Visual Studio. Thanks @tan-wei, see #352
    • ๐Ÿ‘€ Undefine true and false for cJSON_Utils before redefining them. Thanks @raiden00pl, see #347
  • v1.7.11 Changes

    April 14, 2019

    ๐Ÿ›  Fixes:

    • ๐Ÿ›  Fix a bug where cJSON_Minify could overflow it's buffer, both reading and writing. This is a security issue. (see #338). Big thanks @bigric3 for reporting.
    • ๐Ÿ‘€ Unset true and false macros before setting them if they exist. See #339, thanks @raiden00pl for reporting
  • v1.7.10 Changes

    December 20, 2018

    ๐Ÿ›  Fixes:

    • ๐Ÿ›  Fix package config file for libcjson. Thanks @shiluotang for reporting (#321)
    • ๐Ÿ”€ Correctly split lists in cJSON_Utils's merge sort. Thanks @andysCaplin for the fix (#322)
  • v1.7.9 Changes

    December 16, 2018

    ๐Ÿ›  Fixes:

    • ๐Ÿ›  Fix a bug where cJSON_GetObjectItemCaseSensitive would pass a nullpointer to strcmp when called on an array (#315). Thanks @yuweol for reporting.
    • ๐Ÿ›  Fix error in cJSON_Utils where the case sensitivity was not respected (#317). Thanks @yuta-oxo for fixing.
    • ๐Ÿ›  Fix some warnings detected by the Visual Studio Static Analyzer (#307). Thanks @bnason-nf
  • v1.7.8 Changes

    September 21, 2018

    ๐Ÿ›  Fixes:

    • ๐Ÿ cJSON now works with the __stdcall calling convention on Windows, see #295, thanks @zhindes for contributing
  • v1.7.7 Changes

    May 21, 2018

    ๐Ÿ›  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
  • v1.7.6 Changes

    April 13, 2018

    ๐Ÿ›  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.