[openssl] master update

Dr. Paul Dale pauli at openssl.org
Tue Nov 16 22:15:58 UTC 2021


The branch master has been updated
       via  7cc5738a561933e38ad0e724f4df7b503c3c8e73 (commit)
      from  e3f0362407f6f40e413d6dcb35888514dbaed6f8 (commit)


- Log -----------------------------------------------------------------
commit 7cc5738a561933e38ad0e724f4df7b503c3c8e73
Author: Pauli <pauli at openssl.org>
Date:   Mon Nov 15 08:35:27 2021 +1000

    Fix Coverity 1493746: constant expression result
    
    Reviewed-by: Tomas Mraz <tomas at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/17034)

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

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

diff --git a/crypto/stack/stack.c b/crypto/stack/stack.c
index c06af85e33..01fad46d4a 100644
--- a/crypto/stack/stack.c
+++ b/crypto/stack/stack.c
@@ -168,7 +168,7 @@ static ossl_inline int compute_growth(int target, int current)
         current = safe_muldiv_int(current, 8, 5, &err);
         if (err)
             return 0;
-        if (current > max_nodes)
+        if (current >= max_nodes)
             current = max_nodes;
     }
     return current;


More information about the openssl-commits mailing list