comparison fuzzer-pubkey.c @ 1456:a90fdd2d2ed8 fuzz

add fuzzer-preauth_nomaths
author Matt Johnston <matt@ucc.asn.au>
date Tue, 23 Jan 2018 23:05:47 +0800
parents f03cfe9c76ac
children 92c93b4a3646
comparison
equal deleted inserted replaced
1455:4afde04f0607 1456:a90fdd2d2ed8
2 #include "session.h" 2 #include "session.h"
3 #include "fuzz-wrapfd.h" 3 #include "fuzz-wrapfd.h"
4 #include "debug.h" 4 #include "debug.h"
5 5
6 static void setup_fuzzer(void) { 6 static void setup_fuzzer(void) {
7 common_setup_fuzzer(); 7 fuzz_common_setup();
8 } 8 }
9 9
10 int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { 10 int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
11 static int once = 0; 11 static int once = 0;
12 if (!once) { 12 if (!once) {
13 setup_fuzzer(); 13 setup_fuzzer();
14 once = 1; 14 once = 1;
15 } 15 }
16 16
17 if (fuzzer_set_input(Data, Size) == DROPBEAR_FAILURE) { 17 if (fuzz_set_input(Data, Size) == DROPBEAR_FAILURE) {
18 return 0; 18 return 0;
19 } 19 }
20 20
21 m_malloc_set_epoch(1); 21 m_malloc_set_epoch(1);
22 22