From: Dr. Matthias St. Pierre Date: Sun, 9 Sep 2018 14:33:12 +0000 (+0200) Subject: crypto/rsa/rsa_pss.c: silence coverity warning X-Git-Tag: OpenSSL_1_1_1~11 X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff_plain;h=427e91d928ce7a1c583e4bba761cb17a85ac95b4 crypto/rsa/rsa_pss.c: silence coverity warning Reported by Coverity Scan (CID 1439138) [extended tests] Reviewed-by: Ben Kaduk Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/7156) --- diff --git a/crypto/rsa/rsa_pss.c b/crypto/rsa/rsa_pss.c index 26d5f36f1f..f7c575d00a 100644 --- a/crypto/rsa/rsa_pss.c +++ b/crypto/rsa/rsa_pss.c @@ -244,7 +244,7 @@ int RSA_padding_add_PKCS1_PSS_mgf1(RSA *rsa, unsigned char *EM, err: EVP_MD_CTX_free(ctx); - OPENSSL_clear_free(salt, sLen); + OPENSSL_clear_free(salt, (size_t)sLen); /* salt != NULL implies sLen > 0 */ return ret;