diff options
author | Matt Johnston <matt@ucc.asn.au> | 2017-05-13 22:50:54 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2017-05-13 22:50:54 +0800 |
commit | fb719e3d0ba3571d3abc5638d1fbbe9e1675d6a7 (patch) | |
tree | 7a72eeedf1e3c89258e1e35057f737f1d0176f9c /packet.c | |
parent | 9f24cdf74c93aa75416687972e69b5b4c8be2698 (diff) |
fuzz harness
--HG--
branch : fuzz
Diffstat (limited to 'packet.c')
-rw-r--r-- | packet.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -36,6 +36,7 @@ #include "channel.h" #include "netio.h" #include "runopts.h" +#include "fuzz.h" static int read_packet_init(void); static void make_mac(unsigned int seqno, const struct key_context_directional * key_state, @@ -78,7 +79,7 @@ void write_packet() { calls write_packet() without bothering to test with select() since it's likely to be necessary */ #ifdef DROPBEAR_FUZZ - if (opts.fuzz.fuzzing) { + if (fuzz.fuzzing) { // pretend to write one packet at a time // TODO(fuzz): randomise amount written based on the fuzz input written = iov[0].iov_len; |