Integrated: 8360664: Null pointer dereference in src/hotspot/share/prims/jvmtiTagMap.cpp in IterateOverHeapObjectClosure::do_object()
Artem Semenov
asemenov at openjdk.org
Mon Jul 7 06:14:45 UTC 2025
On Thu, 26 Jun 2025 13:24:31 GMT, Artem Semenov <asemenov at openjdk.org> wrote:
> The defect has been detected and confirmed in the function ```IterateOverHeapObjectClosure::do_object()``` located in the file ```src/hotspot/share/prims/jvmtiTagMap.cpp``` with static code analysis. This defect can potentially lead to a null pointer dereference.
>
> The pointer ```oop o``` is passed to the constructor of the CallbackWrapper class, where it is dereferenced without a null check.
This pull request has now been integrated.
Changeset: e9a43416
Author: Artem Semenov <asemenov at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/e9a434165a6ec07cde0429c7f9823bbc5dab7857
Stats: 4 lines in 1 file changed: 2 ins; 0 del; 2 mod
8360664: Null pointer dereference in src/hotspot/share/prims/jvmtiTagMap.cpp in IterateOverHeapObjectClosure::do_object()
Found by Linux Verification Center (linuxtesting.org) with SVACE.
Signed-off-by: Artem Semenov <savoptik at altlinux.org>.
Reviewed-by: sspitsyn, amenkov, cjplummer
-------------
PR: https://git.openjdk.org/jdk/pull/26002
More information about the serviceability-dev
mailing list