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: mechko/JSON-java
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: stleary/JSON-java
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.
  • 10 commits
  • 10 files changed
  • 4 contributors

Commits on Jul 13, 2026

  1. 1063-option-3 parserConfig set max len

    Sean Leary Sean Leary
    Sean Leary authored and Sean Leary committed Jul 13, 2026
    Configuration menu
    Copy the full SHA
    90563eb View commit details
    Browse the repository at this point in the history

Commits on Jul 14, 2026

  1. stleary#1063: bound BigDecimal->BigInteger expansion in objectToBigIn…

    …teger
    
    Completes the CVE-2026-59171 fix started in ab92bb9 / stleary#1065. The
    1000-char length guard in stringToValue admits short exponent-notation
    literals (e.g. 1e100000000, 11 chars) which are stored compactly as
    BigDecimal and only expand when getBigInteger/optBigInteger calls
    BigDecimal.toBigInteger(), materialising ~10^8 digits and stalling the
    thread or throwing OOM.
    
    Guard both toBigInteger() sites in objectToBigInteger by rejecting any
    BigDecimal whose integer part would exceed
    ParserConfiguration.DEFAULT_MAX_NUMBER_LENGTH decimal digits
    (precision() - scale(), both O(1) reads). Returns defaultValue on
    overflow, matching the method's existing behaviour for non-finite and
    unparseable values.
    
    Covers JSONObject.getBigInteger/optBigInteger and
    JSONArray.getBigInteger/optBigInteger (all delegate to this helper).
    
    Adds JSONObjectTest.getBigIntegerHugeExponentReturnsDefault with a 5s
    timeout so a regression fails fast rather than hanging CI.
    
    Co-Authored-By: Claude <[email protected]>
    mechko and claude committed Jul 14, 2026
    Configuration menu
    Copy the full SHA
    fce83c9 View commit details
    Browse the repository at this point in the history
  2. stleary#1063: add comment to expected-exception catch block (SonarClo…

    …ud java:S108)
    
    Co-Authored-By: Claude <[email protected]>
    mechko and claude committed Jul 14, 2026
    Configuration menu
    Copy the full SHA
    e40d933 View commit details
    Browse the repository at this point in the history

Commits on Jul 16, 2026

  1. stleary#1063: add JSONParserConfiguration overloads for getBigInteger…

    …/optBigInteger
    
    Per review on stleary#1067:
    - objectToBigInteger(val, dflt, JSONParserConfiguration) uses
      cfg.getMaxNumberLength() for the digit-count guard; -1 disables it.
      Existing 2-arg form delegates with a default config.
    - New public overloads on JSONObject and JSONArray:
      getBigInteger(key, cfg) / optBigInteger(key, dflt, cfg).
      Existing methods delegate with a default config.
    - objectToBigDecimal left unchanged (no expansion path; agreed on PR).
    - Tests cover default (1000), raised (2000), lowered (5), disabled (-1),
      null config, and JSONArray overloads.
    
    Co-Authored-By: Claude <[email protected]>
    mechko and claude committed Jul 16, 2026
    Configuration menu
    Copy the full SHA
    703ac34 View commit details
    Browse the repository at this point in the history
  2. Merge pull request stleary#1067 from mechko/1063-biginteger-exponent-dos

    stleary#1063: bound BigDecimal→BigInteger expansion in objectToBigInteger (completes CVE-2026-59171 fix)
    stleary authored Jul 16, 2026
    Configuration menu
    Copy the full SHA
    a28328c View commit details
    Browse the repository at this point in the history
  3. max-number-length-config sonarqube fixes

    Sean Leary Sean Leary
    Sean Leary authored and Sean Leary committed Jul 16, 2026
    Configuration menu
    Copy the full SHA
    9953b76 View commit details
    Browse the repository at this point in the history

Commits on Jul 19, 2026

  1. Merge pull request stleary#1068 from stleary/max-number-length-config

    Max number length config for BigInteger and BigDecimal
    stleary authored Jul 19, 2026
    Configuration menu
    Copy the full SHA
    80efb52 View commit details
    Browse the repository at this point in the history
  2. pre-release-20260719 initial commit

    Sean Leary Sean Leary
    Sean Leary authored and Sean Leary committed Jul 19, 2026
    Configuration menu
    Copy the full SHA
    d24bc9e View commit details
    Browse the repository at this point in the history
  3. pre-release-20260719 oops forgot to update new unit tests for strict …

    …mode
    Sean Leary Sean Leary
    Sean Leary authored and Sean Leary committed Jul 19, 2026
    Configuration menu
    Copy the full SHA
    da757c6 View commit details
    Browse the repository at this point in the history
  4. Merge pull request stleary#1069 from stleary/pre-release-20260719

    20260719 prep for next release
    stleary authored Jul 19, 2026
    Configuration menu
    Copy the full SHA
    1795e8c View commit details
    Browse the repository at this point in the history
Loading