]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Set op_num to 0
authorAndrew Dinh <andrewd@openssl.org>
Wed, 19 Feb 2025 11:24:47 +0000 (18:24 +0700)
committerNeil Horman <nhorman@openssl.org>
Thu, 20 Feb 2025 18:10:12 +0000 (13:10 -0500)
Here, op_num is just used for logging purposes (number of completed operations), so start it at 0

Fixes https://scan5.scan.coverity.com/#/project-view/62507/10222?selectedIssue=1643034

Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/26829)

test/radix/terp.c

index e0a0f33b1c847627f6d2cc9c28140d8d6fa69cd4..c139fac8020b2ee531808c84be2290e5048b5567 100644 (file)
@@ -667,7 +667,7 @@ static int TERP_execute(TERP *terp)
 {
     int ok = 0;
     uint64_t opc;
-    size_t op_num = SIZE_MAX;
+    size_t op_num = 0;
     int in_debug_output = 0;
     size_t spin_count = 0;
     BIO *debug_bio = terp->cfg.debug_bio;