| Index: net/data/parse_certificate_unittest/cert_data_after_signature.pem
|
| diff --git a/net/data/parse_certificate_unittest/cert_data_after_signature.pem b/net/data/parse_certificate_unittest/cert_data_after_signature.pem
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..1f23faec5b00456813959248820331fe2d95ba24
|
| --- /dev/null
|
| +++ b/net/data/parse_certificate_unittest/cert_data_after_signature.pem
|
| @@ -0,0 +1,16 @@
|
| +This is an otherwise "valid" input to ParseCertificate(), however there is a trailing NULL after the signature field.
|
| +
|
| +
|
| +
|
| +-----BEGIN CERTIFICATE-----
|
| +MA4wAgUAMAIFAAMCAKwFAA==
|
| +-----END CERTIFICATE-----
|
| +
|
| +$ openssl asn1parse -i < [CERTIFICATE]
|
| + 0:d=0 hl=2 l= 14 cons: SEQUENCE
|
| + 2:d=1 hl=2 l= 2 cons: SEQUENCE
|
| + 4:d=2 hl=2 l= 0 prim: NULL
|
| + 6:d=1 hl=2 l= 2 cons: SEQUENCE
|
| + 8:d=2 hl=2 l= 0 prim: NULL
|
| + 10:d=1 hl=2 l= 2 prim: BIT STRING
|
| + 14:d=1 hl=2 l= 0 prim: NULL
|
|
|