]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Remove redundant check for `saltlen > UINT32_MAX`
authorDaniel Fiala <daniel@openssl.org>
Tue, 28 Jun 2022 08:00:29 +0000 (10:00 +0200)
committerTomas Mraz <tomas@openssl.org>
Wed, 29 Jun 2022 13:23:13 +0000 (15:23 +0200)
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18671)

providers/common/der/der_rsa_key.c

index 2ae53a171db003a037c0b8439fb2989f725d53bb..893970575f9f303a1014091456ca120baeb36487 100644 (file)
@@ -305,7 +305,7 @@ int ossl_DER_w_RSASSA_PSS_params(WPACKET *pkt, int tag,
     saltlen = ossl_rsa_pss_params_30_saltlen(pss);
     trailerfield = ossl_rsa_pss_params_30_trailerfield(pss);
 
-    if (saltlen < 0 || (unsigned int)saltlen > UINT32_MAX) {
+    if (saltlen < 0) {
         ERR_raise(ERR_LIB_RSA, RSA_R_INVALID_SALT_LENGTH);
         return 0;
     }