]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fix possible memleak in PKCS7_add0_attrib_signing_time
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Tue, 14 Nov 2023 01:42:42 +0000 (02:42 +0100)
committerRichard Levitte <levitte@openssl.org>
Wed, 22 Nov 2023 08:55:42 +0000 (09:55 +0100)
commit1ef520045556c4b5ada3a6c63d32a41b5d084165
treec56f5218edf8c88d888e579bf37d0da9d03fff25
parent92889328fbbb2344339f7c90afc449f6eb9b11a6
Fix possible memleak in PKCS7_add0_attrib_signing_time

When PKCS7_add_signed_attribute fails, the ASN1_TIME
object may be leaked when it was not passed in as
input parameter.

Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22772)

(cherry picked from commit 7d52539f00144cb410c4e9d8da0b9574c0badb19)
(cherry picked from commit e83a231d3e1da1a55260503a06365b1950985933)
crypto/pkcs7/pk7_attr.c