-
Notifications
You must be signed in to change notification settings - Fork 0
Comparing changes
Open a pull request
base repository: mechko/JSON-java
base: master
head repository: stleary/JSON-java
compare: master
- 10 commits
- 10 files changed
- 4 contributors
Commits on Jul 13, 2026
-
1063-option-3 parserConfig set max len
Sean Leary authored and Sean Leary committedJul 13, 2026 Configuration menu - View commit details
-
Copy full SHA for 90563eb - Browse repository at this point
Copy the full SHA 90563ebView commit details
Commits on Jul 14, 2026
-
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]>
Configuration menu - View commit details
-
Copy full SHA for fce83c9 - Browse repository at this point
Copy the full SHA fce83c9View commit details -
stleary#1063: add comment to expected-exception catch block (SonarClo…
…ud java:S108) Co-Authored-By: Claude <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e40d933 - Browse repository at this point
Copy the full SHA e40d933View commit details
Commits on Jul 16, 2026
-
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]>
Configuration menu - View commit details
-
Copy full SHA for 703ac34 - Browse repository at this point
Copy the full SHA 703ac34View commit details -
Merge pull request stleary#1067 from mechko/1063-biginteger-exponent-dos
stleary#1063: bound BigDecimal→BigInteger expansion in objectToBigInteger (completes CVE-2026-59171 fix)
Configuration menu - View commit details
-
Copy full SHA for a28328c - Browse repository at this point
Copy the full SHA a28328cView commit details -
max-number-length-config sonarqube fixes
Sean Leary authored and Sean Leary committedJul 16, 2026 Configuration menu - View commit details
-
Copy full SHA for 9953b76 - Browse repository at this point
Copy the full SHA 9953b76View commit details
Commits on Jul 19, 2026
-
Merge pull request stleary#1068 from stleary/max-number-length-config
Max number length config for BigInteger and BigDecimal
Configuration menu - View commit details
-
Copy full SHA for 80efb52 - Browse repository at this point
Copy the full SHA 80efb52View commit details -
pre-release-20260719 initial commit
Sean Leary authored and Sean Leary committedJul 19, 2026 Configuration menu - View commit details
-
Copy full SHA for d24bc9e - Browse repository at this point
Copy the full SHA d24bc9eView commit details -
pre-release-20260719 oops forgot to update new unit tests for strict …
…mode
Sean Leary authored and Sean Leary committedJul 19, 2026 Configuration menu - View commit details
-
Copy full SHA for da757c6 - Browse repository at this point
Copy the full SHA da757c6View commit details -
Merge pull request stleary#1069 from stleary/pre-release-20260719
20260719 prep for next release
Configuration menu - View commit details
-
Copy full SHA for 1795e8c - Browse repository at this point
Copy the full SHA 1795e8cView commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff master...master