Fix PKCS7 potential segfault
authorShane Lontis <shane.lontis@oracle.com>
Fri, 11 Dec 2020 09:24:46 +0000 (19:24 +1000)
committerTomas Mraz <tomas@openssl.org>
Mon, 18 Jan 2021 14:01:26 +0000 (15:01 +0100)
commit038f4dc68edd16f719ce5cf140eda2fb5b86a62a
treec91c66bd82817b4bd83810278bc5b0074854d69d
parent84af8027c5f2132a9166673e7a47b0f31c7cfe1d
Fix PKCS7 potential segfault

As the code that handles libctx, propq for PKCS7 is very similar to CMS
code, a similiar fix for issue #13624 needs to be applied.

Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/13668)
crypto/pkcs7/pk7_asn1.c
crypto/pkcs7/pk7_doit.c
crypto/pkcs7/pk7_lib.c
crypto/pkcs7/pk7_mime.c
crypto/pkcs7/pk7_smime.c
crypto/x509/x_all.c