]> 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:37:30 +0000 (17:37 +0200)
commitd9a7a8e200e80c875fd54c746e7a67b3f23ee03c
tree104027c3fed711aa0064ac764ea1dfd705344829
parent30034398c69011a19fbc60eed92f77ca36ddebe4
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)

(cherry picked from commit 6543f34dda8908db56372581eef6eafa0ae4add4)
crypto/ts/ts_rsp_sign.c