ReverseBuilder.getMatchingCACerts may throws NPE

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 8
    • Affects Version/s: 7
    • Component/s: security-libs
    • None
    • b43
    • generic
    • generic
    • Verified

        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.

              Assignee:
              Sean Mullan
              Reporter:
              Xuelei Fan
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: