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

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


  Branch: refs/heads/master
  Home:   https://github.com/openssl/openssl
  Commit: 7301759afedffaf2f106495b3b171de9abfa2d2a
      https://github.com/openssl/openssl/commit/7301759afedffaf2f106495b3b171de9abfa2d2a
  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