RFR: 8353468: [ubsan] arguments.cpp:2422:23: runtime error: 2.14748e+11 is outside the range of representable values of type 'int' [v4]

Afshin Zafari azafari at openjdk.org
Fri Aug 29 13:46:28 UTC 2025


> In converting values of `-XMinf` and `-XMaxf` options to `int`, overflow was not checked. 
> The values are checked against INT_MAX and clamped.
> 
> Tests: tiers 1-5.

Afshin Zafari has updated the pull request incrementally with one additional commit since the last revision:

  improved tests and messages.

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/26859/files
  - new: https://git.openjdk.org/jdk/pull/26859/files/87e0b8d9..7f18f689

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=26859&range=03
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=26859&range=02-03

  Stats: 59 lines in 2 files changed: 46 ins; 5 del; 8 mod
  Patch: https://git.openjdk.org/jdk/pull/26859.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/26859/head:pull/26859

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


More information about the hotspot-runtime-dev mailing list