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

Incorrect encoding of the DistributionPointName object in IssuingDistributionPointExtension

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • P4
    • Resolution: Fixed
    • None
    • 18
    • security-libs
    • None

    Description

      There is an encoding bug related to the DistributionPointName object in sun/security/x509/IssuingDistributionPointExtension.java:
      *
      * The fix would be:
      *
      * ***************
      * *** 395,397 ****
      * distributionPoint.encode(tmp);
      * ! tagged.writeImplicit(DerValue.createTag(DerValue.TAG_CONTEXT, true,
      * TAG_DISTRIBUTION_POINT), tmp);
      * --- 395,397 ----
      * distributionPoint.encode(tmp);
      * ! tagged.write(DerValue.createTag(DerValue.TAG_CONTEXT, true,
      * TAG_DISTRIBUTION_POINT), tmp);
      *

      The reason is that a CHOICE field should not be encode as IMPLICIT, otherwise, the choice number is lost.

      Attachments

        Issue Links

          Activity

            People

              weijun Weijun Wang
              weijun Weijun Wang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: