From 1fba0589e33bb3415f3f5a95b35ecf5ec33234d9 Mon Sep 17 00:00:00 2001 From: igerasim Date: Fri, 28 Feb 2014 16:00:40 +0400 Subject: [PATCH] 8035893: JVM_GetVersionInfo fails to zero structure Reviewed-by: sla, zgu --- src/share/vm/prims/jvm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/share/vm/prims/jvm.cpp b/src/share/vm/prims/jvm.cpp index c39b10252..5586ed7de 100644 --- a/src/share/vm/prims/jvm.cpp +++ b/src/share/vm/prims/jvm.cpp @@ -4544,7 +4544,7 @@ JVM_END JVM_ENTRY(void, JVM_GetVersionInfo(JNIEnv* env, jvm_version_info* info, size_t info_size)) { - memset(info, 0, sizeof(info_size)); + memset(info, 0, info_size); info->jvm_version = Abstract_VM_Version::jvm_version(); info->update_version = 0; /* 0 in HotSpot Express VM */ -- GitLab