Integrated: 8346866: [ASAN] memoryReserver.cpp reported applying non-zero offset to non-null pointer produced null pointer

SendaoYan syan at openjdk.org
Tue Jan 21 15:36:49 UTC 2025


On Tue, 31 Dec 2024 04:00:16 GMT, SendaoYan <syan at openjdk.org> wrote:

> Hi all,
> This PR add an extra loop condition check `p2u(attach_point) > stepsize` in function `HeapReserver::Instance::try_reserve_range` to make sure the loop will not wrap around, and make UndefinedBehaviorSanitizer silent. The change do not change the original logic, risk is low.
> 
> Additional testing:
> 
> - [x]  jtreg tests(include tier1/2/3 etc., which include tests added by [PR22712](https://github.com/openjdk/jdk/pull/22712)) on linux-x64 with release build
> - [x]  jtreg tests(include tier1/2/3 etc., which include tests added by [PR22712](https://github.com/openjdk/jdk/pull/22712)) on linux-x64 with fastdebug build
> - [x]  jtreg tests(include tier1/2/3 etc., which include tests added by [PR22712](https://github.com/openjdk/jdk/pull/22712)) on linux-aarch64 with release build
> - [x]  jtreg tests(include tier1/2/3 etc., which include tests added by [PR22712](https://github.com/openjdk/jdk/pull/22712)) on linux-aarch64 with fastdebug build

This pull request has now been integrated.

Changeset: 8e8c9482
Author:    SendaoYan <syan at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/8e8c9482a972a0b8fe6de0887af8a6558f774d23
Stats:     13 lines in 1 file changed: 0 ins; 2 del; 11 mod

8346866: [ASAN] memoryReserver.cpp reported applying non-zero offset to non-null pointer produced null pointer

Co-authored-by: Axel Boldt-Christmas <aboldtch at openjdk.org>
Reviewed-by: kbarrett, stefank

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

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


More information about the hotspot-runtime-dev mailing list