[openssl/openssl] a72abc: Fix a possible memory leak in CMS_add_simple_smimecap
Bernd Edlinger
noreply at github.com
Mon Dec 4 12:01:48 UTC 2023
Branch: refs/heads/openssl-3.0
Home: https://github.com/openssl/openssl
Commit: a72abc4ae90832dce69e72bd75e36078fe676612
https://github.com/openssl/openssl/commit/a72abc4ae90832dce69e72bd75e36078fe676612
Author: Bernd Edlinger <bernd.edlinger at hotmail.de>
Date: 2023-12-04 (Mon, 04 Dec 2023)
Changed paths:
M crypto/cms/cms_sd.c
Log Message:
-----------
Fix a possible memory leak in CMS_add_simple_smimecap
The return code of X509_ALGOR_set0 was not checked,
and if it fails the key will be leaked.
Reviewed-by: Tomas Mraz <tomas at openssl.org>
Reviewed-by: Todd Short <todd.short at me.com>
(Merged from https://github.com/openssl/openssl/pull/22741)
(cherry picked from commit 3af29bf9f99d3e0e90cc72180898802375b88d3b)
More information about the openssl-commits
mailing list