/hg/release/icedtea7-forest-2.3/hotspot: 8035893: JVM_GetVersion...

andrew at icedtea.classpath.org andrew at icedtea.classpath.org
Mon Mar 24 16:54:51 UTC 2014


changeset 72a544aeb892 in /hg/release/icedtea7-forest-2.3/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.3/hotspot?cmd=changeset;node=72a544aeb892
author: igerasim
date: Fri Feb 28 16:00:40 2014 +0400

	8035893: JVM_GetVersionInfo fails to zero structure
	Reviewed-by: sla, zgu


diffstat:

 src/share/vm/prims/jvm.cpp |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 9747f83d7a38 -r 72a544aeb892 src/share/vm/prims/jvm.cpp
--- a/src/share/vm/prims/jvm.cpp	Fri Mar 21 20:57:28 2014 +0000
+++ b/src/share/vm/prims/jvm.cpp	Fri Feb 28 16:00:40 2014 +0400
@@ -4534,7 +4534,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 */


More information about the distro-pkg-dev mailing list