Mercurial > dropbear
diff fuzz-common.c @ 1358:6b89eb92f872 fuzz
glaring wrapfd problems fixed
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sat, 20 May 2017 22:47:19 +0800 |
parents | 08f4fa4dc6a0 |
children | ddfcadca3c4c |
line wrap: on
line diff
--- a/fuzz-common.c Sat May 20 13:23:16 2017 +0800 +++ b/fuzz-common.c Sat May 20 22:47:19 2017 +0800 @@ -27,6 +27,9 @@ 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 @@ uint32_t wrapseed = buf_getint(fuzz.input); wrapfd_setup(wrapseed); - seedrandom(); + seedfuzz(); return DROPBEAR_SUCCESS; }