]> git.ipfire.org Git - thirdparty/openssl.git/commit
ssl/statem: Replace size_t with int and add the checks
authorJiasheng Jiang <jiasheng@purdue.edu>
Fri, 22 Mar 2024 16:00:39 +0000 (16:00 +0000)
committerTomas Mraz <tomas@openssl.org>
Fri, 26 Apr 2024 07:28:55 +0000 (09:28 +0200)
commit48e3cf25a80db9a2991daccb0d8d1848065bca63
treee310ed635ed07dde53dd9226034812d5ed3f0228
parent6d018570407606acc1eabe68921496d77f27aeb9
ssl/statem: Replace size_t with int and add the checks

Replace the type of variables with int to avoid implicit conversion when it is assigned by EVP_MD_get_size().
Moreover, add the checks to avoid integer overflow.

Fixes: 6594189 ("Merge early_data_info extension into early_data")
Fixes: 9368f86 ("Add TLSv1.3 client side external PSK support")
Fixes: 1053a6e ("Implement Server side of PSK extension parsing")
Signed-off-by: Jiasheng Jiang <jiasheng@purdue.edu>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23937)
ssl/statem/extensions_clnt.c
ssl/statem/extensions_srvr.c