RFR: 8357047: [ubsan] AdapterFingerPrint::AdapterFingerPrint runtime error: index 3 out of bounds
Ashutosh Mehra
asmehra at openjdk.org
Thu May 22 02:51:05 UTC 2025
Refactor `AdapterFingerPrint` to remove the notion of compact representation. As the memory for storing fingerprint is always allocated next to the AdapterFingerPrint` object, use of `_value` array is not required. This simplifies the implementation a bit, and would also fix the "false" positives flagged by ubsan when accessing `_value` array beyond its size (See the description in JBS issue).
Testing: hotspot_runtime on x86-64 with fastdebug build
-------------
Commit messages:
- 8357047: [ubsan] AdapterFingerPrint::AdapterFingerPrint runtime error: index 3 out of bounds
Changes: https://git.openjdk.org/jdk/pull/25378/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=25378&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8357047
Stats: 43 lines in 1 file changed: 16 ins; 17 del; 10 mod
Patch: https://git.openjdk.org/jdk/pull/25378.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/25378/head:pull/25378
PR: https://git.openjdk.org/jdk/pull/25378
More information about the hotspot-dev
mailing list