Integrated: 8366062: [ubsan] add non-zero offset to nullptr in cds/archiveBuilder.cpp
Afshin Zafari
azafari at openjdk.org
Mon Nov 3 09:31:28 UTC 2025
On Thu, 28 Aug 2025 10:15:47 GMT, Afshin Zafari <azafari at openjdk.org> wrote:
> It is acceptable that the `SharedBaseAddress` option gets `0` at command line. The corresponding pointer arithmetic with `0` (`nullptr`) in archiveBuilder is UB.
> Specific casts are used to avoid UBSAN error.
>
> Tests:
> linux-x64-debug: tier1 passed
This pull request has now been integrated.
Changeset: 4e63c041
Author: Afshin Zafari <azafari at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/4e63c0412e3a05af1ff783d0587e03a6817b8e0d
Stats: 11 lines in 1 file changed: 5 ins; 1 del; 5 mod
8366062: [ubsan] add non-zero offset to nullptr in cds/archiveBuilder.cpp
Reviewed-by: iklam, dholmes
-------------
PR: https://git.openjdk.org/jdk/pull/26983
More information about the hotspot-runtime-dev
mailing list