Mercurial > dropbear
comparison fuzz/fuzz-common.c @ 1775:8179eabe16c9
fuzzing - fix some wrong types and -lcrypt on macos
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Mon, 02 Nov 2020 20:33:48 +0800 |
parents | 833bf9947603 |
children | 97ad26e397a5 |
comparison
equal
deleted
inserted
replaced
1774:833bf9947603 | 1775:8179eabe16c9 |
---|---|
237 if (fuzz_set_input(Data, Size) == DROPBEAR_FAILURE) { | 237 if (fuzz_set_input(Data, Size) == DROPBEAR_FAILURE) { |
238 return 0; | 238 return 0; |
239 } | 239 } |
240 | 240 |
241 uint32_t wrapseed; | 241 uint32_t wrapseed; |
242 genrandom(&wrapseed, sizeof(wrapseed)); | 242 genrandom((void*)&wrapseed, sizeof(wrapseed)); |
243 wrapfd_setseed(wrapseed); | 243 wrapfd_setseed(wrapseed); |
244 | 244 |
245 int fakesock = wrapfd_new(); | 245 int fakesock = wrapfd_new(); |
246 | 246 |
247 m_malloc_set_epoch(1); | 247 m_malloc_set_epoch(1); |
273 | 273 |
274 // Allow to proceed sooner | 274 // Allow to proceed sooner |
275 ses.kexstate.donefirstkex = 1; | 275 ses.kexstate.donefirstkex = 1; |
276 | 276 |
277 uint32_t wrapseed; | 277 uint32_t wrapseed; |
278 genrandom(&wrapseed, sizeof(wrapseed)); | 278 genrandom((void*)&wrapseed, sizeof(wrapseed)); |
279 wrapfd_setseed(wrapseed); | 279 wrapfd_setseed(wrapseed); |
280 | 280 |
281 int fakesock = wrapfd_new(); | 281 int fakesock = wrapfd_new(); |
282 | 282 |
283 m_malloc_set_epoch(1); | 283 m_malloc_set_epoch(1); |