Fix embedded string handling.
authorDr. Stephen Henson <steve@openssl.org>
Sun, 2 Oct 2016 13:13:40 +0000 (14:13 +0100)
committerDr. Stephen Henson <steve@openssl.org>
Mon, 17 Oct 2016 13:36:29 +0000 (14:36 +0100)
commite97afdad659b6523a8f172097bf4f10ca2ce0867
tree84f517991aae93b06e7c4d7ab4eb6d7cbe6569d6
parent6a73da167f509cb394877ddce4f154b0991a2635
Fix embedded string handling.

Don't rely on embedded flag to free strings correctly: it wont be
set if there is a malloc failure during initialisation.

Thanks to Guido Vranken for reporting this issue.

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/1725)
(cherry picked from commit 6215f27a83c6b9089a217dd6deab1665e0ced516)
crypto/asn1/a_type.c
crypto/asn1/asn1_lib.c
crypto/asn1/asn1_locl.h
crypto/asn1/tasn_fre.c