All Versions
44
Latest Version
Avg Release Cycle
68 days
Latest Release
63 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

    Note:

    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.