RFR: 8340110: Ubsan: verifier.cpp:2043:19: runtime error: shift exponent 100 is too large for 32-bit type 'int'

Afshin Zafari azafari at openjdk.org
Mon Feb 10 10:24:20 UTC 2025


The value 100 for shift comes from a test which shuffles the bytecode contents and tries to verify the resulting bytecode. So, the solution is first check if there is no error in verification then use left-shift to find the type of the class being verified.

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

Commit messages:
 - Merge branch '_8340110_ubsan_shift' of http://github.com/afshin-zafari/jdk into _8340110_ubsan_shift
 - comment added.
 - 8340110: Ubsan: verifier.cpp:2043:19: runtime error: shift exponent 100 is too large for 32-bit type 'int'

Changes: https://git.openjdk.org/jdk/pull/23539/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=23539&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8340110
  Stats: 3 lines in 1 file changed: 1 ins; 0 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/23539.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/23539/head:pull/23539

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


More information about the hotspot-runtime-dev mailing list