diff options
author | tb <> | 2023-11-18 09:37:15 +0000 |
---|---|---|
committer | tb <> | 2023-11-18 09:37:15 +0000 |
commit | 2868c4924e7f764422adf07f0e31dfca72a17b16 (patch) | |
tree | 6a57455fb90dc2e6329a93bfd6f50f475ffbf84e /src/lib/libssl/t1_lib.c | |
parent | c6900151193480e987d5cd27808c84949568d891 (diff) | |
download | openbsd-2868c4924e7f764422adf07f0e31dfca72a17b16.tar.gz openbsd-2868c4924e7f764422adf07f0e31dfca72a17b16.tar.bz2 openbsd-2868c4924e7f764422adf07f0e31dfca72a17b16.zip |
Check for negative IV length
A recent change in EVP_CIPHER_CTX_iv_length() made it possible in principle
that this function returns -1. This can only happen for an incorrectly set
up EVP_CIPHER. Still it is better form to check for negative lengths before
stuffing it into a memcpy().
It would probably be desirable to cap the iv_length to something large
enough. This can be done another time.
ok beck
Diffstat (limited to 'src/lib/libssl/t1_lib.c')
0 files changed, 0 insertions, 0 deletions