The branch OpenSSL_1_1_1-stable has been updated
       via  c7a7ed3870e51a91379aaddad2da3be0aba1daf6 (commit)
      from  b1d6d55ece1c26fa2829e2b819b038d7b6d692b4 (commit)


- Log -----------------------------------------------------------------
commit c7a7ed3870e51a91379aaddad2da3be0aba1daf6
Author: Dr. Matthias St. Pierre <[email protected]>
Date:   Sun Oct 28 13:32:11 2018 +0100

    randfile.c: fix a Coverity warning
    
    Reviewed-by: Richard Levitte <[email protected]>
    (Merged from https://github.com/openssl/openssl/pull/7510)
    
    (cherry picked from commit 040a03470c7c5bf95fe8e6143db7bef357a22833)

-----------------------------------------------------------------------

Summary of changes:
 crypto/rand/randfile.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/crypto/rand/randfile.c b/crypto/rand/randfile.c
index 45d20e5..1b737d1 100644
--- a/crypto/rand/randfile.c
+++ b/crypto/rand/randfile.c
@@ -110,7 +110,7 @@ int RAND_load_file(const char *file, long bytes)
 
     if (bytes < 0) {
         if (S_ISREG(sb.st_mode))
-            bytes = (sb.st_size <= LONG_MAX) ? sb.st_size : LONG_MAX;
+            bytes = sb.st_size;
         else
             bytes = RAND_DRBG_STRENGTH;
     }
_____
openssl-commits mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-commits

Reply via email to