[openssl/openssl] f06d40: Fix a possible memleak in PKCS7_add_attrib_smimecap
Bernd Edlinger
noreply at github.com
Wed Nov 22 08:30:06 UTC 2023
Branch: refs/heads/openssl-3.2
Home: https://github.com/openssl/openssl
Commit: f06d4082394d4fd6d9ba96a441bbb1c6ef524020
https://github.com/openssl/openssl/commit/f06d4082394d4fd6d9ba96a441bbb1c6ef524020
Author: Bernd Edlinger <bernd.edlinger at hotmail.de>
Date: 2023-11-22 (Wed, 22 Nov 2023)
Changed paths:
M crypto/pkcs7/pk7_attr.c
Log Message:
-----------
Fix a possible memleak in PKCS7_add_attrib_smimecap
When PKCS7_add_signed_attribute fails, the ASN1_STRING
object may be leaked.
Reviewed-by: Neil Horman <nhorman at openssl.org>
Reviewed-by: Shane Lontis <shane.lontis at oracle.com>
Reviewed-by: Tomas Mraz <tomas at openssl.org>
Reviewed-by: Richard Levitte <levitte at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22744)
(cherry picked from commit ed3d2771278cfa1c355b40c681f5acc8404156c6)
More information about the openssl-commits
mailing list