[openssl/openssl] 7b71e8: Fix a possible memory leak in dh_cms_encrypt

Bernd Edlinger noreply at github.com
Fri Dec 22 12:48:35 UTC 2023


  Branch: refs/heads/openssl-3.0
  Home:   https://github.com/openssl/openssl
  Commit: 7b71e83155269802220daf93381d4ecafcc8cfa4
      https://github.com/openssl/openssl/commit/7b71e83155269802220daf93381d4ecafcc8cfa4
  Author: Bernd Edlinger <bernd.edlinger at hotmail.de>
  Date:   2023-12-22 (Fri, 22 Dec 2023)

  Changed paths:
    M crypto/cms/cms_dh.c

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

Add a missing check of the return code of X509_ALGOR_set0,
otherwise the ASN1_STRING object wrap_str may be leaked.

Reviewed-by: Tom Cosgrove <tom.cosgrove at arm.com>
Reviewed-by: Tomas Mraz <tomas at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22998)

(cherry picked from commit a26635e0d7f3228035ae1d0d110ea88479f84754)




More information about the openssl-commits mailing list