United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-8035893 JVM_GetVersionInfo fails to zero structure
JDK-8035893 : JVM_GetVersionInfo fails to zero structure

Details
Type:
Bug
Submit Date:
2014-02-26
Status:
Open
Updated Date:
2014-02-26
Project Name:
JDK
Resolved Date:
Component:
hotspot
OS:
Sub-Component:
runtime
CPU:
Priority:
P4
Resolution:
Unresolved
Affected Versions:
9
Targeted Versions:

Related Reports
Relates:

Sub Tasks

Description
This is the same issue that had been fixed in jdk native code before (JDK-6989972).
It appears that it still exists in hotspot:


less ./share/vm/prims/jvm.cpp

JVM_ENTRY(void, JVM_GetVersionInfo(JNIEnv* env, jvm_version_info* info, size_t info_size))
{
  memset(info, 0, sizeof(info_size));

the last line should be
  memset(info, 0, info_size);

                                    

Comments



Hardware and Software, Engineered to Work Together