[openssl-commits] [openssl] OpenSSL_1_1_1-stable update

matthias.st.pierre at ncp-e.com matthias.st.pierre at ncp-e.com
Sun Oct 28 22:39:26 UTC 2018


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


- Log -----------------------------------------------------------------
commit c7a7ed3870e51a91379aaddad2da3be0aba1daf6
Author: Dr. Matthias St. Pierre <Matthias.St.Pierre at ncp-e.com>
Date:   Sun Oct 28 13:32:11 2018 +0100

    randfile.c: fix a Coverity warning
    
    Reviewed-by: Richard Levitte <levitte at openssl.org>
    (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;
     }


More information about the openssl-commits mailing list