RFR: 8352420: [ubsan] codeBuffer.cpp:984:27: runtime error: applying non-zero offset 18446744073709486080 to null pointer [v2]
Matthias Baesken
mbaesken at openjdk.org
Fri Mar 21 15:41:20 UTC 2025
On Thu, 20 Mar 2025 20:06:49 GMT, Doug Simon <dnsimon at openjdk.org> wrote:
>> This PR addresses undefined behavior in CodeBuffer by making `verify_section_allocation` return early for a partially initialized CodeBuffer.
>
> Doug Simon has updated the pull request incrementally with two additional commits since the last revision:
>
> - initialize _total_start with nullptr instead of 0
> - moved initialization of _total_start and _total_size
Looks good to me!
Small nit , please adjust the COPYRIGHT info in codeBuffer.hpp too.
-------------
Marked as reviewed by mbaesken (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/24118#pullrequestreview-2706405603
More information about the hotspot-compiler-dev
mailing list