diff options
author | Matt Johnston <matt@ucc.asn.au> | 2017-05-20 22:47:19 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2017-05-20 22:47:19 +0800 |
commit | c1694230516fe1c3d78e4fd23aebd5fbc00ce21c (patch) | |
tree | 613a04012ce46ddecb6216301c7cca710cf17aac /fuzz-common.c | |
parent | fdc6f323923b36add7ab7112b1b4d05368bd5902 (diff) |
glaring wrapfd problems fixed
--HG--
branch : fuzz
Diffstat (limited to 'fuzz-common.c')
-rw-r--r-- | fuzz-common.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fuzz-common.c b/fuzz-common.c index cc3d4d6..144bf14 100644 --- a/fuzz-common.c +++ b/fuzz-common.c @@ -27,6 +27,9 @@ int fuzzer_set_input(const uint8_t *Data, size_t Size) { fuzz.input->len = Size; fuzz.input->pos = 0; + memset(&ses, 0x0, sizeof(ses)); + memset(&svr_ses, 0x0, sizeof(svr_ses)); + // get prefix. input format is // string prefix // uint32 wrapfd seed @@ -44,7 +47,7 @@ int fuzzer_set_input(const uint8_t *Data, size_t Size) { uint32_t wrapseed = buf_getint(fuzz.input); wrapfd_setup(wrapseed); - seedrandom(); + seedfuzz(); return DROPBEAR_SUCCESS; } |