RFR: 8365604: Null pointer dereference in src/hotspot/share/adlc/output_h.cpp ArchDesc::declareClasses() [v2]
Artem Semenov
asemenov at openjdk.org
Thu Aug 21 10:34:04 UTC 2025
On Wed, 20 Aug 2025 12:22:18 GMT, David Holmes <dholmes at openjdk.org> wrote:
>> Artem Semenov has updated the pull request incrementally with two additional commits since the last revision:
>>
>> - Update src/hotspot/share/c1/c1_LinearScan.cpp
>>
>> Co-authored-by: David Holmes <62092539+dholmes-ora at users.noreply.github.com>
>> - Update src/hotspot/share/adlc/output_h.cpp
>>
>> Co-authored-by: David Holmes <62092539+dholmes-ora at users.noreply.github.com>
>
> src/hotspot/share/opto/vectorIntrinsics.cpp line 1319:
>
>> 1317: log_if_needed(" ** not supported: arity=%d op=%s vlen=%d etype=%s atype=%s ismask=no",
>> 1318: is_scatter, is_scatter ? "scatter" : "gather",
>> 1319: num_elem, type2name(elem_bt), type2name(arr_type->elem()->array_element_basic_type()));
>
> There is a bug here but I'm not sure it is what you think it is.
```addr_type->isa_aryptr();``` might return nullptr, while in ```elem_consistent_with_arr(elem_bt, arr_type, false)```, arr_type is only checked with an assert.
Moreover, the presence of a check in the original version indicates that arr_type can be null, and there is no protection against this.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/26798#discussion_r2290615638
More information about the hotspot-jfr-dev
mailing list