[openssl/openssl] f7531f: Fix a possible memleak in PKCS7_add_attrib_smimecap
Bernd Edlinger
noreply at github.com
Wed Nov 22 08:31:08 UTC 2023
Branch: refs/heads/openssl-3.1
Home: https://github.com/openssl/openssl
Commit: f7531fdadd61b7a5d9b7e0aaa79c7ba97cbded84
https://github.com/openssl/openssl/commit/f7531fdadd61b7a5d9b7e0aaa79c7ba97cbded84
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