[openssl/openssl] 4a5088: ssl_cipher_get_overhead(): Replace size_t with int...
JiashengJiang
noreply at github.com
Fri May 10 09:39:05 UTC 2024
Branch: refs/heads/master
Home: https://github.com/openssl/openssl
Commit: 4a5088259e78127354f497931568de409ac905fc
https://github.com/openssl/openssl/commit/4a5088259e78127354f497931568de409ac905fc
Author: Jiasheng Jiang <jiasheng at purdue.edu>
Date: 2024-05-10 (Fri, 10 May 2024)
Changed paths:
M ssl/ssl_ciph.c
Log Message:
-----------
ssl_cipher_get_overhead(): Replace size_t with int and add the checks
Replace the type of "mac", "out", and "blk" with int to avoid implicit
conversion when it is assigned by EVP_MD_get_size(),
EVP_CIPHER_get_iv_length(), and EVP_CIPHER_get_block_size().
Moreover, add the checks to avoid integer overflow.
Fixes: 045bd04706 ("Add DTLS_get_data_mtu() function")
Signed-off-by: Jiasheng Jiang <jiasheng at purdue.edu>
Reviewed-by: Tom Cosgrove <tom.cosgrove at arm.com>
Reviewed-by: Tomas Mraz <tomas at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23935)
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