[openssh-commits] [openssh] branch master updated: avoid gcc warning in fuzz test

git+noreply at mindrot.org git+noreply at mindrot.org
Sun Sep 15 13:30:19 AEST 2024


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

djm pushed a commit to branch master
in repository openssh.

The following commit(s) were added to refs/heads/master by this push:
     new 0c1165fc avoid gcc warning in fuzz test
0c1165fc is described below

commit 0c1165fc78e8fe69b5df71f81a8f944554a68b53
Author: Damien Miller <djm at mindrot.org>
AuthorDate: Sun Sep 15 13:30:13 2024 +1000

    avoid gcc warning in fuzz test
---
 regress/unittests/test_helper/fuzz.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/regress/unittests/test_helper/fuzz.c b/regress/unittests/test_helper/fuzz.c
index 78b36654..9995b26a 100644
--- a/regress/unittests/test_helper/fuzz.c
+++ b/regress/unittests/test_helper/fuzz.c
@@ -214,7 +214,7 @@ siginfo(int unused __attribute__((__unused__)))
 struct fuzz *
 fuzz_begin(u_int strategies, const void *p, size_t l)
 {
-	struct fuzz *ret = calloc(sizeof(*ret), 1);
+	struct fuzz *ret = calloc(1, sizeof(*ret));
 
 	assert(p != NULL);
 	assert(ret != NULL);

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


More information about the openssh-commits mailing list