comparison svr-auth.c @ 1348:5c2899e35b63 fuzz

fuzz harness
author Matt Johnston <matt@ucc.asn.au>
date Sat, 13 May 2017 22:50:54 +0800
parents b28624698130
children 3fdd8c5a0195
comparison
equal deleted inserted replaced
1347:b28624698130 1348:5c2899e35b63
357 unsigned int delay; 357 unsigned int delay;
358 genrandom((unsigned char*)&delay, sizeof(delay)); 358 genrandom((unsigned char*)&delay, sizeof(delay));
359 /* We delay for 300ms +- 50ms */ 359 /* We delay for 300ms +- 50ms */
360 delay = 250000 + (delay % 100000); 360 delay = 250000 + (delay % 100000);
361 #ifndef DROPBEAR_FUZZ 361 #ifndef DROPBEAR_FUZZ
362 if (!opts.fuzz.fuzzing) { 362 if (!fuzz.fuzzing) {
363 usleep(delay); 363 usleep(delay);
364 } 364 }
365 #endif 365 #endif
366 ses.authstate.failcount++; 366 ses.authstate.failcount++;
367 } 367 }