Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: FieldbusDesign/cJSON
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: DaveGamble/cJSON
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 9 commits
  • 12 files changed
  • 4 contributors

Commits on May 7, 2025

  1. allocate memory for the temporary buffer

    Allocate memory for the temporary buffer when paring numbers.
    This fixes CVE-2023-26819
    PeterAlfredLee authored and Alanscut committed May 7, 2025
    Configuration menu
    Copy the full SHA
    a328d65 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8f2beb5 View commit details
    Browse the repository at this point in the history

Commits on Sep 5, 2025

  1. Configuration menu
    Copy the full SHA
    74e1ff4 View commit details
    Browse the repository at this point in the history

Commits on Sep 9, 2025

  1. Configuration menu
    Copy the full SHA
    c859b25 View commit details
    Browse the repository at this point in the history

Commits on Feb 7, 2026

  1. Configuration menu
    Copy the full SHA
    a29814f View commit details
    Browse the repository at this point in the history

Commits on Feb 25, 2026

  1. Configuration menu
    Copy the full SHA
    5cc0e39 View commit details
    Browse the repository at this point in the history

Commits on Mar 12, 2026

  1. docs: fix outdated CMake version requirement in README (DaveGamble#990)

    The README stated that CMake 2.8.5+ was required, but CMakeLists.txt
    requires CMake 3.5+. This inconsistency caused confusion for users
    with CMake versions between 2.8.5 and 3.5.
    
    Also updated library_config/uninstall.cmake to match for consistency.
    
    Fixes DaveGamble#988
    PeterAlfredLee authored Mar 12, 2026
    Configuration menu
    Copy the full SHA
    a3f3d6c View commit details
    Browse the repository at this point in the history
  2. fix: prevent NULL pointer dereference in cJSON_SetNumberHelper (DaveG…

    …amble#991)
    
    Add NULL check at the beginning of cJSON_SetNumberHelper to prevent
    segmentation fault when called with NULL object pointer. The function
    now returns NAN (Not-a-Number) when object is NULL, consistent with
    error handling patterns in other cJSON functions.
    
    This fixes a Denial of Service vulnerability (CWE-476) where an
    attacker could crash applications using the cJSON library by
    triggering this function with a NULL pointer.
    
    Changes:
    - cJSON.c: Add NULL check in cJSON_SetNumberHelper
    - tests/misc_tests.c: Add test case and math.h include
    
    Security: Fixes NULL pointer dereference vulnerability
    PeterAlfredLee authored Mar 12, 2026
    Configuration menu
    Copy the full SHA
    b2890c8 View commit details
    Browse the repository at this point in the history

Commits on Apr 9, 2026

  1. Configuration menu
    Copy the full SHA
    fb16e5c View commit details
    Browse the repository at this point in the history
Loading