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

JVM_GetVersionInfo fails to zero structure

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Introduced In Version:
    • Resolved In Build:
      b06

      Backports

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

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  Created:
                  Updated:
                  Resolved: