]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
expect fuzz cases to have length prefix
authorDamien Miller <djm@mindrot.org>
Sat, 30 Jan 2021 05:28:23 +0000 (16:28 +1100)
committerDamien Miller <djm@mindrot.org>
Sat, 30 Jan 2021 05:28:23 +0000 (16:28 +1100)
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

index 79cdc6102c3c1756d5be9cf88d25f9dd9088316b..1ea1576379f7d09ca43ea9c99a84608d661da362 100644 (file)
@@ -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();