Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8035893

JVM_GetVersionInfo fails to zero structure

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 9
    • hotspot
    • b06

        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);

              igerasim Ivan Gerasimov
              igerasim Ivan Gerasimov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: