Calculate sequence length properly.
authorDr. Stephen Henson <steve@openssl.org>
Tue, 2 Aug 2016 22:53:41 +0000 (23:53 +0100)
committerDr. Stephen Henson <steve@openssl.org>
Tue, 2 Aug 2016 23:13:03 +0000 (00:13 +0100)
commit436dead2e2a157fa501a7538a77b6078391b477f
tree7dfff328e1f861d3e3d7fc6c8fdef64d8b4528e4
parent134ab5139a8d41455a81d9fcc31b3edb8a4b2f5c
Calculate sequence length properly.

Use correct length in old ASN.1 indefinite length sequence decoder
(only used by SSL_SESSION).

This bug was discovered by Hanno Böck using libfuzzer.

Reviewed-by: Rich Salz <rsalz@openssl.org>
crypto/asn1/asn1_lib.c