Closed GoogleCodeExporter closed 8 years ago
Original comment by marvin.addison@gmail.com
on 28 Jan 2011 at 9:21
Attached PEM-encoded certificate that produced stack trace in issue description.
Original comment by marvin.addison@gmail.com
on 28 Jan 2011 at 9:24
Attachments:
Committed fix in r1813. The root cause of this problem was a naive
implementation of extracting the octets inside a DER octet string. The former
implementation always assumed that the length was encoded as a single byte,
which is incorrect per the ASN.1 specification that allows an arbitrary number
of bytes as needed to encode the octet length. The cert attached to this issue
would had a CRL URI of length 180, whose length would have been encoded as 2
bytes. The broken implementation thus treated the third byte of the length as
the first byte of octets, which happened to be a non-standard DER tag and was
thus interpreted as an application-specific type.
The new implementation only provides the "discard wrapper" feature for DER
octet strings since that is the only use case for which the feature is needed
at present.
Original comment by marvin.addison@gmail.com
on 31 Jan 2011 at 8:45
Original issue reported on code.google.com by
marvin.addison@gmail.com
on 28 Jan 2011 at 9:21