[openssl/openssl] 68cec7: Fix a memory leak in rsa_priv_encode
    Bernd Edlinger 
    noreply at github.com
       
    Fri Dec 16 18:07:59 UTC 2022
    
    
  
  Branch: refs/heads/OpenSSL_1_1_1-stable
  Home:   https://github.com/openssl/openssl
  Commit: 68cec7e9d31fdf05b82a627a82398d8cfb0b915c
      https://github.com/openssl/openssl/commit/68cec7e9d31fdf05b82a627a82398d8cfb0b915c
  Author: Bernd Edlinger <bernd.edlinger at hotmail.de>
  Date:   2022-12-16 (Fri, 16 Dec 2022)
  Changed paths:
    M crypto/rsa/rsa_ameth.c
  Log Message:
  -----------
  Fix a memory leak in rsa_priv_encode
If PKCS8_pkey_set0 fails, the memory in rk need to be clear freed
otherwise it is owned by the PKCS8_PRIV_KEY_INFO.
Reviewed-by: Hugo Landau <hlandau at openssl.org>
Reviewed-by: Todd Short <todd.short at me.com>
Reviewed-by: Paul Dale <pauli at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19694)
    
    
More information about the openssl-commits
mailing list