Integrated: 8361487: [ubsan] test_committed_virtualmemory.cpp check_covered_pages shows overflow

Afshin Zafari azafari at openjdk.org
Fri Nov 14 09:07:16 UTC 2025


On Wed, 5 Nov 2025 14:55:05 GMT, Afshin Zafari <azafari at openjdk.org> wrote:

> In the test,  page-numbers to be checked are passed to a checker function in which they will be changed to `-1` if they are as expected.
> Use of these `-1` values for page-numbers in consequent checks result in overflow in pointer arithmetic of `base + (-1) * page_size` which is certainly less than `base`.
> 
> The fix is to skip cases where page-number under checking is `-1`.
> Tested under UBSAN build.

This pull request has now been integrated.

Changeset: 9eaa364a
Author:    Afshin Zafari <azafari at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/9eaa364a5221cba960467ffbaea14ea790809c6a
Stats:     9 lines in 1 file changed: 7 ins; 0 del; 2 mod

8361487: [ubsan] test_committed_virtualmemory.cpp check_covered_pages shows overflow

Reviewed-by: jsjolen, phubner

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

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


More information about the hotspot-runtime-dev mailing list