Skip to content
Commit 83ab43da authored by Dmitry Belyavskiy's avatar Dmitry Belyavskiy Committed by Hugo Landau
Browse files

Check that IV length is not less than zero



As EVP_CIPHER_CTX_get_iv_length indicates failure with -1, this error
should be processed. Also the result of this function shouldn't be
assigned to an unsigned variable.

Reviewed-by: default avatarPaul Dale <pauli@openssl.org>
Reviewed-by: default avatarTomas Mraz <tomas@openssl.org>
Reviewed-by: default avatarHugo Landau <hlandau@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18891)
parent 4000827f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment