diff options
author | Matt Johnston <matt@ucc.asn.au> | 2017-05-25 22:21:49 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2017-05-25 22:21:49 +0800 |
commit | b8fa71284709e4cbaef7398dc9fc17155f8d2f7a (patch) | |
tree | 2c6cab9ca77900a081a9936c3e550cbb63c67f78 /fuzz-common.c | |
parent | 095b067857df04ea498e7adf76dc0380d7deeb1d (diff) |
rearrange, all fuzzers now call fuzzer_set_input()
--HG--
branch : fuzz
Diffstat (limited to 'fuzz-common.c')
-rw-r--r-- | fuzz-common.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/fuzz-common.c b/fuzz-common.c index d5fc9db..4c5da70 100644 --- a/fuzz-common.c +++ b/fuzz-common.c @@ -31,23 +31,7 @@ int fuzzer_set_input(const uint8_t *Data, size_t Size) { memset(&ses, 0x0, sizeof(ses)); memset(&svr_ses, 0x0, sizeof(svr_ses)); - - // get prefix. input format is - // string prefix - // uint32 wrapfd seed - // ... to be extended later - // [bytes] ssh input stream - - // be careful to avoid triggering buffer.c assertions - if (fuzz.input->len < 8) { - return DROPBEAR_FAILURE; - } - size_t prefix_size = buf_getint(fuzz.input); - if (prefix_size != 4) { - return DROPBEAR_FAILURE; - } - uint32_t wrapseed = buf_getint(fuzz.input); - wrapfd_setup(wrapseed); + wrapfd_setup(); fuzz_seed(); |