]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fix memory leaks after failure of PKCS7_add_signed_attribute()
authorwidneve <wito.deneve@ugent.be>
Tue, 20 May 2025 14:23:09 +0000 (16:23 +0200)
committerTomas Mraz <tomas@openssl.org>
Fri, 23 May 2025 15:36:53 +0000 (17:36 +0200)
commit6543f34dda8908db56372581eef6eafa0ae4add4
tree914ce07247c3ff066d6ea94591982beba27cd4ca
parentafd32bcb5456a9e33b0f4e07f572263b404d4d4b
Fix memory leaks after failure of PKCS7_add_signed_attribute()

If PKCS7_add_signed_attribute fails,
seq never escapes out of the callee and will
therefore result in a memory leak.
This is similar to ed3d277127.

CLA: trivial

Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/27670)
crypto/ts/ts_rsp_sign.c