]> 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:17 +0000 (17:37 +0200)
commit4234c3a97f67a06491e05a940a59d2f358729ca8
tree4508651ec60119c3bb54a9415786d5ebb2470f2a
parentbb2f6c8737a17dc5f4076cc47e98141a49e24ddd
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