Add length checks for partial_len
authortb <tb@openbsd.org>
Fri, 22 Dec 2023 14:58:05 +0000 (14:58 +0000)
committertb <tb@openbsd.org>
Fri, 22 Dec 2023 14:58:05 +0000 (14:58 +0000)
commit5065ecc0235fc02b344ed6b4e59616bb05406b4e
tree8786f1c08c0ea41b9e721d8e28efc8f0e4fe2754
parent2506fb05a8979d569f96291ad038e97a084b0df2
Add length checks for partial_len

These remove a few more potential out-of-bounds accesses and ensure in
particular that the padding is between 1 and block_size (inclusive).

ok joshua jsing
lib/libcrypto/evp/evp_enc.c