changeset 6946:d4caf9c96afd

8035893: JVM_GetVersionInfo fails to zero structure Reviewed-by: sla, zgu
author igerasim
date Fri, 28 Feb 2014 16:00:40 +0400
parents f913964f3fde
children 03b7d9efd9fd
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	Tue Dec 02 12:24:31 2014 -0800
+++ b/src/share/vm/prims/jvm.cpp	Fri Feb 28 16:00:40 2014 +0400
@@ -4544,7 +4544,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 */