Integrated: 8252997: Null-proofing for linker_md.c
Adam Farley
afarley at openjdk.java.net
Wed Oct 7 08:08:15 UTC 2020
On Fri, 18 Sep 2020 11:09:19 GMT, Adam Farley <afarley at openjdk.org> wrote:
> In the platform-specific implementations of linker_md.c, we see the dll_build_name methods begin with a call to
> jvmtiAllocate.
> We then appear to rush ahead and try to use that variable without checking for a null.
>
> I propose moving the null check to the point *before* we try to use that variable, to avoid any possible SEGV.
>
> Bug link: https://bugs.openjdk.java.net/browse/JDK-8252997
This pull request has now been integrated.
Changeset: 4dfa4112
Author: Adam Farley <afarley at openjdk.org>
Committer: Aleksey Shipilev <shade at openjdk.org>
URL: https://git.openjdk.java.net/jdk/commit/4dfa4112
Stats: 8 lines in 2 files changed: 4 ins; 2 del; 2 mod
8252997: Null-proofing for linker_md.c
Reviewed-by: sspitsyn
-------------
PR: https://git.openjdk.java.net/jdk/pull/246
More information about the serviceability-dev
mailing list