changeset 5451:81e87cbbbf43

8035893: JVM_GetVersionInfo fails to zero structure Reviewed-by: sla, zgu
author igerasim
date Fri, 28 Feb 2014 16:00:40 +0400
parents f49c3e79b676
children d386e11a4db3
files src/share/vm/prims/jvm.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/prims/jvm.cpp	Mon Nov 24 16:33:20 2014 +0300
+++ b/src/share/vm/prims/jvm.cpp	Fri Feb 28 16:00:40 2014 +0400
@@ -4611,7 +4611,7 @@
 
 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 */