RFR: 8331320: ClassFile API OutOfMemoryError with certain class files [v2]

Adam Sotona asotona at openjdk.org
Thu May 2 11:13:22 UTC 2024


> Class files with specifically corrupted tableswitch or lookupswitch instructions in the bytecode cause OutOfMemoryError while parsing with Class-File API.
> This patch performs additional checks to avoid OOME and adds relevant tests.
> 
> Please review.
> 
> Thank you,
> Adam

Adam Sotona 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 JDK-8331320-OOME
 - 8331320: ClassFile API OutOfMemoryError with certain class files

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/19024/files
  - new: https://git.openjdk.org/jdk/pull/19024/files/7a3f37c1..914ae074

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=19024&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=19024&range=00-01

  Stats: 2966 lines in 194 files changed: 1373 ins; 409 del; 1184 mod
  Patch: https://git.openjdk.org/jdk/pull/19024.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/19024/head:pull/19024

PR: https://git.openjdk.org/jdk/pull/19024


More information about the core-libs-dev mailing list