[openssl/openssl] 700371: Fix a possible memleak in CMS_sign_receipt

Bernd Edlinger noreply at github.com
Wed Nov 22 08:35:14 UTC 2023


  Branch: refs/heads/openssl-3.0
  Home:   https://github.com/openssl/openssl
  Commit: 700371f78466fd3f9c20feea1938dedfbd213138
      https://github.com/openssl/openssl/commit/700371f78466fd3f9c20feea1938dedfbd213138
  Author: Bernd Edlinger <bernd.edlinger at hotmail.de>
  Date:   2023-11-22 (Wed, 22 Nov 2023)

  Changed paths:
    M crypto/cms/cms_smime.c

  Log Message:
  -----------
  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 at oracle.com>
Reviewed-by: Tim Hudson <tjh at openssl.org>
Reviewed-by: Richard Levitte <levitte at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22758)

(cherry picked from commit 3e3aadd51cae1fbfb512cf4a0999d16c6a2888bd)




More information about the openssl-commits mailing list