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>
Wed, 3 Aug 2016 01:36:08 +0000 (02:36 +0100)
commit5db2a579b72b94aa0dacb08530768a1a5759237d
tree0e17220f2131ed2982189e07017a67ad5ad8ad6e
parentc648bdcc4cd8a7d1699081d339ff33deda69a3be
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>
(cherry picked from commit 436dead2e2a157fa501a7538a77b6078391b477f)
crypto/asn1/asn1_lib.c