[openssl/openssl] 8358ad: Fix a mem leak in evp_pkey_export_to_provider

Todd Short noreply at reply.github.openssl.org
Wed Jun 15 15:02:45 UTC 2022


  Branch: refs/heads/openssl-3.0
  Home:   https://github.openssl.org/openssl/openssl
  Commit: 8358ad79d6ce7689ef6adf7ecb651e67a11f9b1a
      https://github.openssl.org/openssl/openssl/commit/8358ad79d6ce7689ef6adf7ecb651e67a11f9b1a
  Author: K1 <dongbeiouba at gmail.com>
  Date:   2022-06-15 (Wed, 15 Jun 2022)

  Changed paths:
    M crypto/evp/p_lib.c
    M test/keymgmt_internal_test.c
    M test/recipes/02-test_internal_keymgmt.t

  Log Message:
  -----------
  Fix a mem leak in evp_pkey_export_to_provider

If keymgmt is NULL, tmp_keymgmt is allocated and will not be freed.

Reviewed-by: Tomas Mraz <tomas at openssl.org>
Reviewed-by: Paul Yang <kaishen.yy at antfin.com>
Reviewed-by: Todd Short <todd.short at me.com>
(Merged from https://github.com/openssl/openssl/pull/18499)

(cherry picked from commit 115eb945acd9a27bf81c6c8923f43768f9e487a8)




More information about the openssl-commits mailing list