comparison fuzzer-preauth.c @ 1383:f03cfe9c76ac fuzz

Disable setnonblocking(), get_socket_address(), set_sock_priority() for fuzzing
author Matt Johnston <matt@ucc.asn.au>
date Fri, 26 May 2017 22:10:51 +0800
parents 7209a6e30932
children ecdd4e8ae427
comparison
equal deleted inserted replaced
1382:4b864fd12b22 1383:f03cfe9c76ac
34 return 0; 34 return 0;
35 } 35 }
36 uint32_t wrapseed = buf_getint(fuzz.input); 36 uint32_t wrapseed = buf_getint(fuzz.input);
37 wrapfd_setseed(wrapseed); 37 wrapfd_setseed(wrapseed);
38 38
39 int fakesock = 1; 39 int fakesock = 20;
40 wrapfd_add(fakesock, fuzz.input, PLAIN); 40 wrapfd_add(fakesock, fuzz.input, PLAIN);
41 41
42 m_malloc_set_epoch(1); 42 m_malloc_set_epoch(1);
43 if (setjmp(fuzz.jmp) == 0) { 43 if (setjmp(fuzz.jmp) == 0) {
44 svr_session(fakesock, fakesock); 44 svr_session(fakesock, fakesock);