The branch master has been updated
       via  040a03470c7c5bf95fe8e6143db7bef357a22833 (commit)
      from  99540ec79491f59ed8b46b4edf130e17dc907f52 (commit)


- Log -----------------------------------------------------------------
commit 040a03470c7c5bf95fe8e6143db7bef357a22833
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)

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

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