Uploaded image for project: 'WildFly Elytron'
  1. WildFly Elytron
  2. ELY-1396

Ensure the length of an ASN.1 SET is calculated properly when it has an element whose length exceeds 127 bytes

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 1.2.0.Beta6
    • None
    • Utils
    • None

    Description

      When an element's length is greater than 127 bytes, DEREncoder#writeLength successfully writes the length octets using the long form where bit 8 of first octet has value "1" and bits 7-1 give the number of additional length octets and the second and following octets give the length. However, the value returned by writeLength in this case is currently just the number of additional length octets. When such an element is part of a SET, this results in the wrong accumulated length for the SET. The value returned by writeLength should also include the first octet.

      Attachments

        Activity

          People

            fjuma1@redhat.com Farah Juma
            fjuma1@redhat.com Farah Juma
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: