]> git.ipfire.org Git - thirdparty/openssl.git/commit - ssl/t1_lib.c
Check that IV length is not less than zero
authorDmitry Belyavskiy <beldmit@gmail.com>
Wed, 27 Jul 2022 10:15:07 +0000 (12:15 +0200)
committerHugo Landau <hlandau@openssl.org>
Mon, 1 Aug 2022 07:14:23 +0000 (08:14 +0100)
commit83ab43da0c9f67c5069605552b1332ca5fadecf1
tree750114cf1a5a764b5d0c8406710fd9fd39ff6235
parent4000827fdbf3f6d70949186fdd2bc57638500885
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: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18891)
crypto/cms/cms_enc.c
crypto/cms/cms_pwri.c
ssl/ktls.c
ssl/record/rec_layer_d1.c
ssl/record/rec_layer_s3.c
ssl/record/ssl3_record_tls13.c
ssl/statem/statem_srvr.c
ssl/t1_lib.c