Fix a crash in reuse of i2d_X509_PUBKEY
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Wed, 30 Jan 2019 15:20:31 +0000 (16:20 +0100)
committerBernd Edlinger <bernd.edlinger@hotmail.de>
Thu, 31 Jan 2019 18:24:07 +0000 (19:24 +0100)
commit5dc40a83c74be579575a512b30d9c1e0364e6a7b
treee8d869633decce31daa0b43f8b900bb85b6ebdc2
parent53649022509129bce8036c8fb4978dbce9432a86
Fix a crash in reuse of i2d_X509_PUBKEY

If the second PUBKEY is malformed there is use after free.

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