[openssl] OpenSSL_1_1_1-stable update

Dr. Paul Dale pauli at openssl.org
Thu Mar 18 11:25:27 UTC 2021


The branch OpenSSL_1_1_1-stable has been updated
       via  f9398cc2b31858ddaaea3f5cfec2fce7f9b90347 (commit)
      from  1136fedc334b574eef6f551be158860fda4199f2 (commit)


- Log -----------------------------------------------------------------
commit f9398cc2b31858ddaaea3f5cfec2fce7f9b90347
Author: Pauli <ppzgs1 at gmail.com>
Date:   Wed Mar 17 12:23:52 2021 +1000

    apps: fix coverity 966560: division by zero
    
    Reviewed-by: Tomas Mraz <tomas at openssl.org>
    Reviewed-by: Richard Levitte <levitte at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/14586)
    
    (cherry picked from commit 7e7e034a10842dad3866c9447481b8527024bf44)

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

Summary of changes:
 apps/s_time.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/apps/s_time.c b/apps/s_time.c
index 628e65b26e..eabf3c1a79 100644
--- a/apps/s_time.c
+++ b/apps/s_time.c
@@ -263,7 +263,8 @@ int s_time_main(int argc, char **argv)
          nConn, totalTime, ((double)nConn / totalTime), bytes_read);
     printf
         ("%d connections in %ld real seconds, %ld bytes read per connection\n",
-         nConn, (long)time(NULL) - finishtime + maxtime, bytes_read / nConn);
+         nConn, (long)time(NULL) - finishtime + maxtime,
+         nConn > 0 ? bytes_read / nConn : 0l);
 
     /*
      * Now loop and time connections using the same session id over and over


More information about the openssl-commits mailing list