RFR: 8339134: Callers of Exceptions::fthrow should ensure exception message lengths avoid the INT_MAX limits of os::vsnprintf

David Holmes dholmes at openjdk.org
Mon Nov 4 07:05:44 UTC 2024


This is mostly an audit of the callers of `Exceptions::fthrow` to ensure unbounded strings can't appear.

There is a code change in DiagnosticCmd parsing to extend the string length limit already used in part of that code.

Testing:
 - tier 1-3 (sanity)

Thanks

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

Commit messages:
 - 8339134: Callers of Exceptions::fthrow should ensure exception message lengths avoid the INT_MAX limits of os::vsnprintf

Changes: https://git.openjdk.org/jdk/pull/21867/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=21867&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8339134
  Stats: 50 lines in 9 files changed: 44 ins; 1 del; 5 mod
  Patch: https://git.openjdk.org/jdk/pull/21867.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/21867/head:pull/21867

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


More information about the hotspot-dev mailing list