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

Possible uninitialized char* in vm_version_solaris_sparc.cpp

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9, 10
    • Fix Version/s: 10
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b21
    • CPU:
      sparc
    • OS:
      solaris

      Backports

        Description

        In the file src/os_cpu/solaris_sparc/vm/vm_version_solaris_sparc.cpp
        if kstat_open() fails here:

        414 // Otherwise use kstat to determine the machine type.
        415 kstat_ctl_t* kc = kstat_open();

        ..we may then use an uninitialized char* in the later assert:

        434 assert(impl_m != 0, "Unknown CPU implementation %s", impl);


          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  shshahma Shafi Ahmad
                  Reporter:
                  kevinw Kevin Walls
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: