Free up ASN.1 structures at top level only.
authorDr. Stephen Henson <steve@openssl.org>
Sat, 3 Oct 2015 16:15:15 +0000 (17:15 +0100)
committerDr. Stephen Henson <steve@openssl.org>
Mon, 5 Oct 2015 02:31:41 +0000 (03:31 +0100)
commitf93ad22f6adb00e722c130e792799467f3927b56
tree8a9470409c9bb10c1daf071ef5867ac3dd9d7b51
parent605236f6a8fe0743af2f63d93239a74c69dae137
Free up ASN.1 structures at top level only.

When a decoding error in ASN.1 occurs only free up the partial structure
at the top level. This simplifies embedded handling and fixes freeing
up of structures when presented with malformed input.

Reviewed-by: Rich Salz <rsalz@openssl.org>
crypto/asn1/asn1_err.c
crypto/asn1/tasn_dec.c
include/openssl/asn1.h