RFR: 8303611: Null pointer dereference in block.hpp:586 (ID: 44856)
Emanuel Peter
epeter at openjdk.org
Thu Mar 9 20:57:59 UTC 2023
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.
-------------
Commit messages:
- Merge branch 'master' into JDK-8303611
- 8303611: Null pointer dereference in block.hpp:586 (ID: 44856)
Changes: https://git.openjdk.org/jdk/pull/12919/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=12919&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8303611
Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod
Patch: https://git.openjdk.org/jdk/pull/12919.diff
Fetch: git fetch https://git.openjdk.org/jdk pull/12919/head:pull/12919
PR: https://git.openjdk.org/jdk/pull/12919
More information about the hotspot-compiler-dev
mailing list