RFR: 8303611: Null pointer dereference in block.hpp:586 (ID: 44856)
Vladimir Kozlov
kvn at openjdk.org
Thu Mar 9 21:11:54 UTC 2023
On Wed, 8 Mar 2023 08:51:46 GMT, Emanuel Peter <epeter at openjdk.org> wrote:
> Replaced `unique_ctrl_out_or_null` with `unique_ctrl_out`, which asserts if it finds `nullptr`. This is better than running into a `nullptr`-dereference inside `get_block_for_node`.
>
> This was found by a static code analyzer, so it is not clear that a `nullptr` dereference would ever happen. But let's still fix it.
Good.
-------------
Marked as reviewed by kvn (Reviewer).
PR: https://git.openjdk.org/jdk/pull/12919
More information about the hotspot-compiler-dev
mailing list