evp: fix coverity 1484885 negative integer to size_t conversion
authorPauli <pauli@openssl.org>
Sun, 16 May 2021 23:38:29 +0000 (09:38 +1000)
committerPauli <pauli@openssl.org>
Tue, 18 May 2021 03:24:41 +0000 (13:24 +1000)
commit3c18459235331e0562cfd2a9de5ab87040bf55f2
tree771f6ced65a34c25e936fe8a12d99bdf5159d66b
parent634da876e0d6d95a23c5d005b1ac4354a04310d2
evp: fix coverity 1484885 negative integer to size_t conversion

Theoretically, the IV length can come back negative which would explode.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/15300)
crypto/evp/p_seal.c