[openssl/openssl] 3af29b: Fix a possible memory leak in CMS_add_simple_smimecap

Bernd Edlinger noreply at github.com
Mon Dec 4 12:00:00 UTC 2023


  Branch: refs/heads/openssl-3.1
  Home:   https://github.com/openssl/openssl
  Commit: 3af29bf9f99d3e0e90cc72180898802375b88d3b
      https://github.com/openssl/openssl/commit/3af29bf9f99d3e0e90cc72180898802375b88d3b
  Author: Bernd Edlinger <bernd.edlinger at hotmail.de>
  Date:   2023-12-04 (Mon, 04 Dec 2023)

  Changed paths:
    M crypto/cms/cms_sd.c

  Log Message:
  -----------
  Fix a possible memory leak in CMS_add_simple_smimecap

The return code of X509_ALGOR_set0 was not checked,
and if it fails the key will be leaked.

Reviewed-by: Tomas Mraz <tomas at openssl.org>
Reviewed-by: Todd Short <todd.short at me.com>
(Merged from https://github.com/openssl/openssl/pull/22741)




More information about the openssl-commits mailing list