]> git.ipfire.org Git - thirdparty/openssl.git/commit
Add error return value information for EVP_MD_get_size()
authorJiasheng Jiang <jiashengjiangcool@outlook.com>
Fri, 30 Aug 2024 19:36:51 +0000 (19:36 +0000)
committerTomas Mraz <tomas@openssl.org>
Thu, 5 Sep 2024 15:17:11 +0000 (17:17 +0200)
commit8af5dfb254ada55571bd7d6246af6ba008e8472c
tree39cfa998127cc87f30df483a6e30f2f48c6e7ce0
parent16b1f55ac62b207cd623c4c7b6a0784481b8f5e5
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
4a50882 ("ssl_cipher_get_overhead(): Replace size_t with int and add the checks")
and ef9ac2f ("test/bad_dtls_test.c: Add checks for the EVP_MD_CTX_get_size()").

Signed-off-by: Jiasheng Jiang <jiashengjiangcool@outlook.com>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25282)

(cherry picked from commit 09ae1c9f5acdaaf2fe893d513b1e98dbff489c50)
doc/man3/EVP_DigestInit.pod