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

ReverseBuilder.getMatchingCACerts may throws NPE

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 7
    • Fix Version/s: 8
    • Component/s: security-libs
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b43
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Backports

        Description

        sun.security.provider.certpath.ReverseBuilder.getMatchingCACerts():
        222 sel.addPathToName(4, targetCertConstraints.getSubjectAsBytes());

        targetCertConstraints is an instance of X509CertSelector. X509CertSelector.getSubjectAsBytes() mey return null, as will result in X509CertSelector.addPathToName() throws NullPointerException.

        We may need to update the above code in case the subject in an X509CertSelector is null.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                mullan Sean Mullan
                Reporter:
                xuelei Xue-Lei Fan
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: