[openssl/openssl] c8103f: Fix a mem leak in evp_pkey_copy_downgraded()
matt
noreply at reply.github.openssl.org
Wed Jun 8 14:41:44 UTC 2022
Branch: refs/heads/openssl-3.0
Home: https://github.openssl.org/openssl/openssl
Commit: c8103f68ab60d8f47ce40f1e0cd3de05878424a2
https://github.openssl.org/openssl/openssl/commit/c8103f68ab60d8f47ce40f1e0cd3de05878424a2
Author: Matt Caswell <matt at openssl.org>
Date: 2022-06-08 (Wed, 08 Jun 2022)
Changed paths:
M crypto/evp/p_lib.c
Log Message:
-----------
Fix a mem leak in evp_pkey_copy_downgraded()
If we get a failure during evp_pkey_copy_downgraded() and on entry *dest
was NULL then we leak the EVP_PKEY that was automatically allocated and
stored in *dest.
Found due to this comment:
https://github.com/openssl/openssl/pull/18355#issuecomment-1145028315
Reviewed-by: Tomas Mraz <tomas at openssl.org>
Reviewed-by: David von Oheimb <david.von.oheimb at siemens.com>
(Merged from https://github.com/openssl/openssl/pull/18470)
More information about the openssl-commits
mailing list