[jdk11u-dev] RFR: 8299677: Formatter.format might take a long time to format an integer or floating-point [v2]

Paul Hohensee phh at openjdk.org
Fri Jan 27 16:56:11 UTC 2023


> Simple almost clean backport of a potential DOS attack vector fix. Backport from JDK 17 (see https://github.com/openjdk/jdk17u-dev/pull/1077) is clean. Copyright date conflict, plus changed
> 
> Flags.contains(f, Flags.ZERO_PAD)
> 
> to
> 
> f.contains(Flags.ZERO_PAD)
> 
> Passes new and old Formatter tests.

Paul Hohensee has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains two additional commits since the last revision:

 - Merge branch 'master' into backport-8299677
 - Backport 33412c102ce799ff2de3512df77e6e07d76acd36

-------------

Changes:
  - all: https://git.openjdk.org/jdk11u-dev/pull/1667/files
  - new: https://git.openjdk.org/jdk11u-dev/pull/1667/files/bfb99039..bc612438

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk11u-dev&pr=1667&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk11u-dev&pr=1667&range=00-01

  Stats: 3601 lines in 114 files changed: 2432 ins; 374 del; 795 mod
  Patch: https://git.openjdk.org/jdk11u-dev/pull/1667.diff
  Fetch: git fetch https://git.openjdk.org/jdk11u-dev pull/1667/head:pull/1667

PR: https://git.openjdk.org/jdk11u-dev/pull/1667


More information about the jdk-updates-dev mailing list