openssl(1) pkcs7 avoid crash on malformed files
authortb <tb@openbsd.org>
Wed, 8 Feb 2023 07:59:24 +0000 (07:59 +0000)
committertb <tb@openbsd.org>
Wed, 8 Feb 2023 07:59:24 +0000 (07:59 +0000)
commitce9c3de35ca7641ffa3d40009aefb1b0eaf90118
tree78c5ee0d3bc8a7de65e4205c12e5b8b6b05653e9
parent1fdb608f55af06552858daaa549822514987da72
openssl(1) pkcs7 avoid crash on malformed files

When printing certificates or CRLs, check signed and signedAndEnveloped
before dereferencing them. Prevents crash on inspecting malformed PKCS7
files.

ok jsing
usr.bin/openssl/pkcs7.c