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

Signed JAR signature block files with missing optional fields cannot be parsed

XMLWordPrintable

    • 1.2beta
    • generic
    • generic
    • Not verified

      ASN.1 defines MANDATORY and OPTIONAL fields. All the MANDATORY fields must be present in the encoding of an ASN.1 type, whereas OPTIONAL fields may be missing. An ASN.1 parser should be able to handle missing OPTIONAL fields, and not expect them to be present in the encoding.

      Currently, the ASN.1 parser for PKCS#7 formatted messages in the Sun package expects all fields (even the ones defined as OPTIONAL) to be present in the encoding, and will break if an OPTIONAL field is missing in the encoding.

            jlueheorcl Jan Luehe (Inactive)
            jlueheorcl Jan Luehe (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: