[openssl/openssl] 68d6dd: rands/drbg_hash.c: Add checks for the EVP_MD_get_s...
JiashengJiang
noreply at github.com
Tue Apr 2 09:24:36 UTC 2024
Branch: refs/heads/master
Home: https://github.com/openssl/openssl
Commit: 68d6dd3354597de01e7a9534be813756004e1351
https://github.com/openssl/openssl/commit/68d6dd3354597de01e7a9534be813756004e1351
Author: Jiasheng Jiang <jiasheng at purdue.edu>
Date: 2024-04-02 (Tue, 02 Apr 2024)
Changed paths:
M providers/implementations/rands/drbg_hash.c
Log Message:
-----------
rands/drbg_hash.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: 8bf3665196 ("Added DRBG_HMAC & DRBG_HASH + Added defaults for setting DRBG for master/public/private + renamed generate_counter back to reseed_counter + generated new cavs data tests")
Signed-off-by: Jiasheng Jiang <jiasheng at purdue.edu>
Reviewed-by: Tomas Mraz <tomas at openssl.org>
Reviewed-by: Paul Dale <ppzgs1 at gmail.com>
Reviewed-by: Tom Cosgrove <tom.cosgrove at arm.com>
Reviewed-by: Neil Horman <nhorman at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23944)
To unsubscribe from these emails, change your notification settings at https://github.com/openssl/openssl/settings/notifications
More information about the openssl-commits
mailing list