RFR: 8297801: printnm crashes with invalid address due to null pointer dereference

Christian Hagedorn chagedorn at openjdk.org
Fri Dec 16 09:56:58 UTC 2022


On Thu, 15 Dec 2022 16:10:07 GMT, Damon Fenacci <duke at openjdk.org> wrote:

> `printnm` crashes if you pass an invalid address. This is caused by a null pointer dereference.
> Checking for NULL reference before checking if blob is a method.

Looks good! Maybe we could also think about printing an error message in case we passed an invalid address to that method.

-------------

Marked as reviewed by chagedorn (Reviewer).

PR: https://git.openjdk.org/jdk/pull/11697


More information about the hotspot-compiler-dev mailing list