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

CanonicalizeJava2Registry may set CurrentVersion to random value

XMLWordPrintable

    • b10
    • generic
    • windows
    • Not verified

        Code inspection of RegInstall.cpp led to the following observation:

        In CanonicalizeJava2Registry, in the block "if (dwIndex > 0)", we have to recompute the szFamilyVersion string via wsprintf after the call to ParseVersionString. At that point, szFamilyVersion is pointing to a random version string of the potentially multiple installed JRE versions.

        This bug might lead to the wrong Java version being used as the CurrentVersion during uninstallation if multiple versions are installed on the machine.

              jqzuo Jennifer Zuo (Inactive)
              kbr Kenneth Russell (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: