From d18efe73fc99ab9de6e84293137115b6c9c72f6c Mon Sep 17 00:00:00 2001 From: andrew Date: Tue, 8 Jan 2019 04:55:25 +0000 Subject: [PATCH] 8216037: Avoid calling vm_update with a NULL name Summary: Pass the empty string instead of NULL for safer strcmp usage Reviewed-by: andrew Contributed-by: Siddhesh Poyarekar --- src/share/vm/runtime/fprofiler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/share/vm/runtime/fprofiler.cpp b/src/share/vm/runtime/fprofiler.cpp index 58cb6e89d..a06246c7a 100644 --- a/src/share/vm/runtime/fprofiler.cpp +++ b/src/share/vm/runtime/fprofiler.cpp @@ -775,7 +775,7 @@ void ThreadProfiler::unknown_compiled_update(const CodeBlob* cb, TickPosition wh } void ThreadProfiler::vm_update(TickPosition where) { - vm_update(NULL, where); + vm_update("", where); } void ThreadProfiler::vm_update(const char* name, TickPosition where) { -- GitLab