From c1694230516fe1c3d78e4fd23aebd5fbc00ce21c Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Sat, 20 May 2017 22:47:19 +0800 Subject: glaring wrapfd problems fixed --HG-- branch : fuzz --- fuzz-common.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'fuzz-common.c') 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; } -- cgit v1.2.3