[openssl/openssl] dabefe: fix potential memory leak in PKCS12_add_key_ex()

Sashan noreply at github.com
Tue Jun 18 17:49:53 UTC 2024


  Branch: refs/heads/openssl-3.0
  Home:   https://github.com/openssl/openssl
  Commit: dabefe2b3aeefb041d4f08bd45ec5fc64909edf4
      https://github.com/openssl/openssl/commit/dabefe2b3aeefb041d4f08bd45ec5fc64909edf4
  Author: sashan <anedvedicky at gmail.com>
  Date:   2024-06-18 (Tue, 18 Jun 2024)

  Changed paths:
    M crypto/pkcs12/p12_crt.c

  Log Message:
  -----------
  fix potential memory leak in PKCS12_add_key_ex()

function must make sure memorry allocated for `p8`
gets freed in error path. Issue reported by LuMingYinDetect

Fixes #24453

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/24456)



To unsubscribe from these emails, change your notification settings at https://github.com/openssl/openssl/settings/notifications


More information about the openssl-commits mailing list