artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0e8fcc
)
Make use of ntests variable, pointed out by clang 13.
author
anton
<anton@openbsd.org>
Sat, 18 Dec 2021 06:53:59 +0000
(06:53 +0000)
committer
anton
<anton@openbsd.org>
Sat, 18 Dec 2021 06:53:59 +0000
(06:53 +0000)
regress/usr.bin/ssh/unittests/sshbuf/test_sshbuf_fuzz.c
patch
|
blob
|
history
diff --git
a/regress/usr.bin/ssh/unittests/sshbuf/test_sshbuf_fuzz.c
b/regress/usr.bin/ssh/unittests/sshbuf/test_sshbuf_fuzz.c
index
fcf0181
..
f433ab8
100644
(file)
--- a/
regress/usr.bin/ssh/unittests/sshbuf/test_sshbuf_fuzz.c
+++ b/
regress/usr.bin/ssh/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
*
@@
-41,7
+41,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 */