]> git.ipfire.org Git - thirdparty/openssl.git/commit
signature/ecdsa_sig.c: Add checks for the EVP_MD_get_size()
authorJiasheng Jiang <jiasheng@purdue.edu>
Fri, 22 Mar 2024 20:49:27 +0000 (20:49 +0000)
committerTomas Mraz <tomas@openssl.org>
Tue, 9 Apr 2024 18:44:17 +0000 (20:44 +0200)
commitdf0ee35b53a6cde959c119a165814d88e4492bb1
tree3fc6a5d3094deefa0e439327d940593886d76244
parent4feb4a2b2cb7c45c0392e03453a658f29bd70bd2
signature/ecdsa_sig.c: Add checks for the EVP_MD_get_size()

Add checks for the EVP_MD_get_size() to avoid integer overflow and then explicitly cast from int to size_t.

Fixes: edd3b7a309 ("Add ECDSA to providers")
Signed-off-by: Jiasheng Jiang <jiasheng@purdue.edu>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23947)
providers/implementations/signature/ecdsa_sig.c