RFR: 8352141: UBSAN: fix the left shift of negative value in relocInfo.cpp, internal_word_Relocation::pack_data_to()
Afshin Zafari
azafari at openjdk.org
Fri May 23 10:20:52 UTC 2025
On Fri, 23 May 2025 00:26:55 GMT, Dean Long <dlong at openjdk.org> wrote:
> I suspect that the `&= right_n_bits()` trick I proposed for 8352140 would also work for this case.
It's a nice fix for the left-shift cases, IMO. I wasn't aware of `right_n_bits()`. +1 vote for.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/24196#issuecomment-2903969449
More information about the hotspot-compiler-dev
mailing list