openssl/crypto/evp
Zhou Qingyang b9a86d5dd8 Fix possible null pointer dereference of evp_pkey_get_legacy()
evp_pkey_get_legacy() will return NULL on failure, however several
uses of it or its wrappers does not check the return value of
evp_pkey_get_legacy(), which could lead to NULL pointer dereference.

Fix those possible bugs by adding NULL checking.

Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17967)
2022-06-02 12:06:08 +02:00
..
asymcipher.c fix some code with obvious wrong coding style 2021-10-28 13:10:46 +10:00
bio_b64.c
bio_enc.c
bio_md.c
bio_ok.c
build.info
c_allc.c Update copyright year 2022-05-03 13:34:51 +01:00
c_alld.c
cmeth_lib.c
ctrl_params_translate.c Update copyright year 2022-05-03 13:34:51 +01:00
dh_ctrl.c
dh_support.c
digest.c evp_md: assert digest is provided for algctx reuse 2022-05-08 23:48:34 -07:00
dsa_ctrl.c
e_aes_cbc_hmac_sha1.c Update copyright year 2022-05-03 13:34:51 +01:00
e_aes_cbc_hmac_sha256.c
e_aes.c Fix code format: BLOCK_CIPHER_custom 2022-06-02 15:21:36 +10:00
e_aria.c fix some code with obvious wrong coding style 2021-10-28 13:10:46 +10:00
e_bf.c
e_camellia.c fix some code with obvious wrong coding style 2021-10-28 13:10:46 +10:00
e_cast.c
e_chacha20_poly1305.c fix some code with obvious wrong coding style 2021-10-28 13:10:46 +10:00
e_des3.c Fix Coverity 1201740 & 1201712: uninitialised values 2022-05-08 17:50:04 +10:00
e_des.c Fix Coverity 1201740 & 1201712: uninitialised values 2022-05-08 17:50:04 +10:00
e_idea.c fix some code with obvious wrong coding style 2021-10-28 13:10:46 +10:00
e_null.c
e_old.c
e_rc2.c
e_rc4_hmac_md5.c
e_rc4.c
e_rc5.c Address coverity 1493382 argument cannot be negative 2021-11-08 08:55:32 +10:00
e_seed.c fix some code with obvious wrong coding style 2021-10-28 13:10:46 +10:00
e_sm4.c Update copyright year 2022-05-03 13:34:51 +01:00
e_xcbc_d.c
ec_ctrl.c
ec_support.c Update copyright year 2022-05-03 13:34:51 +01:00
encode.c
evp_cnf.c
evp_enc.c Fix check of EVP_CIPHER_CTX_ctrl 2022-05-24 08:57:37 +02:00
evp_err.c
evp_fetch.c Remove the _fetch_by_number functions 2022-05-06 10:38:55 +10:00
evp_key.c
evp_lib.c Always try locale initialization from OPENSSL_strcasecmp 2022-05-13 08:30:48 +02:00
evp_local.h Remove the _fetch_by_number functions 2022-05-06 10:38:55 +10:00
evp_pbe.c add support for SHA-3 based PRF to PBES2 2022-05-18 17:08:48 +02:00
evp_pkey.c
evp_rand.c
evp_utils.c
exchange.c Fix Coverity 1503322, 1503324, 1503328 memory accesses 2022-05-06 18:21:28 +10:00
kdf_lib.c
kdf_meth.c
kem.c CORE: Encure that cached fetches can be done per provider 2021-10-27 12:41:15 +02:00
keymgmt_lib.c Update copyright year 2022-05-03 13:34:51 +01:00
keymgmt_meth.c Remove the _fetch_by_number functions 2022-05-06 10:38:55 +10:00
legacy_blake2.c
legacy_md2.c
legacy_md4.c
legacy_md5_sha1.c
legacy_md5.c
legacy_mdc2.c
legacy_meth.h
legacy_ripemd.c
legacy_sha.c
legacy_wp.c
m_null.c
m_sigver.c Update copyright year 2022-05-03 13:34:51 +01:00
mac_lib.c Enforce a size check in EVP_MAC_final() 2021-10-22 08:43:26 +01:00
mac_meth.c Fix copyrights 2022-02-03 13:56:38 +01:00
names.c
p5_crpt2.c Update copyright year 2022-05-03 13:34:51 +01:00
p5_crpt.c
p_dec.c Fix possible null pointer dereference of evp_pkey_get_legacy() 2022-06-02 12:06:08 +02:00
p_enc.c Fix possible null pointer dereference of evp_pkey_get_legacy() 2022-06-02 12:06:08 +02:00
p_legacy.c
p_lib.c Fix the defective check of EVP_PKEY_get_params 2022-05-26 11:48:48 +10:00
p_open.c Fix the incorrect checks of EVP_CIPHER_CTX_set_key_length 2022-05-27 07:57:43 +02:00
p_seal.c Remove duplicated #include headers 2022-05-04 13:46:10 +10:00
p_sign.c
p_verify.c
pbe_scrypt.c
pmeth_check.c
pmeth_gn.c Update copyright year 2022-05-03 13:34:51 +01:00
pmeth_lib.c int_ctx_new(): Revert extra OPENSSL_init_crypto() call 2022-05-13 08:30:41 +02:00
signature.c CORE: Encure that cached fetches can be done per provider 2021-10-27 12:41:15 +02:00