Skip to content
Commit cc750a9a authored by Dmitry Belyavskiy's avatar Dmitry Belyavskiy
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>

Signed-off-by: default avatarDmitry Belyavskiy <beldmit@gmail.com>

Reviewed-by: default avatarMatt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18922)
parent 2db226ce
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