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:14:17 +0000 (19:14 +0100)
commit7193394aeea6422694bff5bb0c4f9e101f5ce44f
tree5c6842b4bba993986ce1fb2baecaaa8367cbd554
parent822e6d95e063a8fb6cd6b8e272dc5d9338c72601
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)

(cherry picked from commit a727627922b8a9ec6628ffaa2054b4b3833d674b)
crypto/x509/x_crl.c
test/crltest.c