]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fix a possible memleak in CMS_sign_receipt
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Fri, 17 Nov 2023 06:12:42 +0000 (07:12 +0100)
committerRichard Levitte <levitte@openssl.org>
Wed, 22 Nov 2023 08:33:27 +0000 (09:33 +0100)
commit7379e71a698bc296942cf558222853b1a85e2711
treec43a8ab5d0b29f94c666bbf94f188791db251608
parentf7531fdadd61b7a5d9b7e0aaa79c7ba97cbded84
Fix a possible memleak in CMS_sign_receipt

When an error happens after cms_encode_Receipt
the ASN1_OCTET_STRING object "os" may be leaked.

Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22758)

(cherry picked from commit 3e3aadd51cae1fbfb512cf4a0999d16c6a2888bd)
crypto/cms/cms_smime.c