Skip to content
Commit 09ae1c9f authored by Jiasheng Jiang's avatar Jiasheng Jiang Committed by Tomas Mraz
Browse files

Add error return value information for EVP_MD_get_size()



Add error return value information for EVP_MD_get_size() and
EVP_MD_CTX_get_size() to better guide their usages and avoid
the integer overflow, such as
4a508825 ("ssl_cipher_get_overhead(): Replace size_t with int and add the checks")
and ef9ac2f9 ("test/bad_dtls_test.c: Add checks for the EVP_MD_CTX_get_size()").

Signed-off-by: default avatarJiasheng Jiang <jiashengjiangcool@outlook.com>

Reviewed-by: default avatarTom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: default avatarPaul Dale <ppzgs1@gmail.com>
Reviewed-by: default avatarTomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25282)
parent d15077d3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment