[openssh-commits] [openssh] 02/03: upstream: Make use of ntests variable, pointed out by clang 13.

git+noreply at mindrot.org git+noreply at mindrot.org
Mon Dec 20 12:17:28 AEDT 2021


This is an automated email from the git hooks/post-receive script.

djm pushed a commit to branch master
in repository openssh.

commit 6e4980eb8ef94c04874a79dd380c3f568e8416d6
Author: anton at openbsd.org <anton at openbsd.org>
Date:   Sat Dec 18 06:53:59 2021 +0000

    upstream: Make use of ntests variable, pointed out by clang 13.
    
    OpenBSD-Regress-ID: 4241a3d21bdfa1630ed429b6d4fee51038d1be72
---
 regress/unittests/sshbuf/test_sshbuf_fuzz.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/regress/unittests/sshbuf/test_sshbuf_fuzz.c b/regress/unittests/sshbuf/test_sshbuf_fuzz.c
index e3f570be..c0b809dc 100644
--- a/regress/unittests/sshbuf/test_sshbuf_fuzz.c
+++ b/regress/unittests/sshbuf/test_sshbuf_fuzz.c
@@ -1,4 +1,4 @@
-/* 	$OpenBSD: test_sshbuf_fuzz.c,v 1.3 2021/12/14 21:25:27 deraadt Exp $ */
+/* 	$OpenBSD: test_sshbuf_fuzz.c,v 1.4 2021/12/18 06:53:59 anton Exp $ */
 /*
  * Regress test for sshbuf.h buffer API
  *
@@ -45,7 +45,7 @@ sshbuf_fuzz_tests(void)
 	ASSERT_PTR_NE(p1, NULL);
 	ASSERT_PTR_NE(sshbuf_ptr(p1), NULL);
 	ASSERT_MEM_ZERO_NE(sshbuf_ptr(p1), sshbuf_len(p1));
-	for (i = 0; i < NUM_FUZZ_TESTS; i++) {
+	for (i = 0; i < ntests; i++) {
 		r = arc4random_uniform(10);
 		if (r == 0) {
 			/* 10% chance: small reserve */

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list