Skip to content
Commit 15e06b12 authored by Jiasheng Jiang's avatar Jiasheng Jiang Committed by Neil Horman
Browse files

dsa/dsa_pmeth.c: Add the checks for the EVP_MD_CTX_get_size()



Add the checks for the return value of EVP_MD_CTX_get_size() before explicitly cast them to size_t to avoid the integer overflow.

Fixes: 9d04f834 ("Add DSA digest length checks.")
Signed-off-by: default avatarJiasheng Jiang <jiasheng@purdue.edu>

Reviewed-by: default avatarTomas Mraz <tomas@openssl.org>
Reviewed-by: default avatarTodd Short <todd.short@me.com>
Reviewed-by: default avatarNeil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23954)
parent 56e63f57
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