comparison fuzz-common.c @ 1369:ddfcadca3c4c fuzz

fuzzer-pubkey
author Matt Johnston <matt@ucc.asn.au>
date Tue, 23 May 2017 22:43:34 +0800
parents 6b89eb92f872
children 9891bc31a1b3
comparison
equal deleted inserted replaced
1368:10df23099071 1369:ddfcadca3c4c
11 11
12 struct dropbear_fuzz_options fuzz; 12 struct dropbear_fuzz_options fuzz;
13 13
14 static void load_fixed_hostkeys(void); 14 static void load_fixed_hostkeys(void);
15 15
16 static void common_setup_fuzzer(void) { 16 void common_setup_fuzzer(void) {
17 fuzz.fuzzing = 1; 17 fuzz.fuzzing = 1;
18 fuzz.wrapfds = 1; 18 fuzz.wrapfds = 1;
19 fuzz.input = m_malloc(sizeof(buffer)); 19 fuzz.input = m_malloc(sizeof(buffer));
20 crypto_init(); 20 crypto_init();
21 } 21 }
45 return DROPBEAR_FAILURE; 45 return DROPBEAR_FAILURE;
46 } 46 }
47 uint32_t wrapseed = buf_getint(fuzz.input); 47 uint32_t wrapseed = buf_getint(fuzz.input);
48 wrapfd_setup(wrapseed); 48 wrapfd_setup(wrapseed);
49 49
50 seedfuzz(); 50 fuzz_seed();
51 51
52 return DROPBEAR_SUCCESS; 52 return DROPBEAR_SUCCESS;
53 } 53 }
54 54
55 55