RFR: 8364514: [asan] runtime/jni/checked/TestCharArrayReleasing.java heap-buffer-overflow
David Holmes
dholmes at openjdk.org
Mon Aug 4 01:45:52 UTC 2025
On Fri, 1 Aug 2025 13:16:40 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:
> When running with ASAN enabled binaries , the test runtime/jni/checked/TestCharArrayReleasing.java fails with a heap-buffer-overflow . This is expected because the test checks API usage errors and this way triggers ASAN.
Minor suggestion for the comment.
test/hotspot/jtreg/runtime/jni/checked/TestCharArrayReleasing.java line 28:
> 26: * @bug 8357601
> 27: * @requires vm.flagless
> 28: * @comment array was allocated with raw malloc, this causes expected heap buffer issues and triggers asan
Suggestion:
* @comment The check of the array allocated with raw malloc triggers ASAN as we peek into the malloc header space.
-------------
Changes requested by dholmes (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/26598#pullrequestreview-3082482433
PR Review Comment: https://git.openjdk.org/jdk/pull/26598#discussion_r2250246079
More information about the hotspot-runtime-dev
mailing list