Fix a memory leak with di2_X509_CRL reuse
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Tue, 29 Jan 2019 13:16:28 +0000 (14:16 +0100)
committerBernd Edlinger <bernd.edlinger@hotmail.de>
Thu, 31 Jan 2019 18:10:57 +0000 (19:10 +0100)
commita727627922b8a9ec6628ffaa2054b4b3833d674b
treebbce4b293c9abc0f0f54aa91327455c5e01fa2f6
parent62b563b9df161a992fde18a0cb0d1a0969158412
Fix a memory leak with di2_X509_CRL reuse

Additionally avoid undefined behavior with
in-place memcpy in X509_CRL_digest.

Fixes #8099

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/8112)
crypto/x509/x_crl.c
test/crltest.c