[openssh-commits] [openssh] 01/02: expect fuzz cases to have length prefix

git+noreply at mindrot.org git+noreply at mindrot.org
Sat Jan 30 16:33:27 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 0ef24ad60204022f7e33b6e9d171172c50514132
Author: Damien Miller <djm at mindrot.org>
Date:   Sat Jan 30 16:28:23 2021 +1100

    expect fuzz cases to have length prefix
    
    might make life a little easier for the fuzzer, e.g. it can now
    produce valid (multi-request) messages by smashing two cases together.
---
 regress/misc/fuzz-harness/agent_fuzz_helper.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/regress/misc/fuzz-harness/agent_fuzz_helper.c b/regress/misc/fuzz-harness/agent_fuzz_helper.c
index 79cdc610..1ea15763 100644
--- a/regress/misc/fuzz-harness/agent_fuzz_helper.c
+++ b/regress/misc/fuzz-harness/agent_fuzz_helper.c
@@ -162,7 +162,7 @@ test_one(const uint8_t* s, size_t slen)
 
 	reset_idtab();
 	reset_sockettab(devnull);
-	(void)sshbuf_put_string(sockets[0].input, s, slen);
+	(void)sshbuf_put(sockets[0].input, s, slen);
 	process_message(0);
 	cleanup_idtab();
 	cleanup_sockettab();

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


More information about the openssh-commits mailing list