RFR: 8262295: C2: Out-of-Bounds Array Load from Clone Source [v3]
Richard Reingruber
rrich at openjdk.java.net
Tue Mar 23 08:57:57 UTC 2021
On Tue, 23 Mar 2021 07:10:35 GMT, Tobias Hartmann <thartmann at openjdk.org> wrote:
>> Richard Reingruber has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Avoid overflow in expression sizetype->_lo * elemsize + header
>
> src/hotspot/share/opto/memnode.cpp line 552:
>
>> 550: const TypeInt* sizetype = ary_t->size();
>> 551:
>> 552: if (ld_offs_t->_lo >= header && ld_offs_t->_hi < sizetype->_lo * elemsize + header) {
>
> Please add parentheses around `sizetype->_lo * elemsize + header`.
Done.
-------------
PR: https://git.openjdk.java.net/jdk/pull/2708
More information about the hotspot-compiler-dev
mailing list