comparison fuzz-harness.c @ 1741:d1b279aa5ed1 fuzz

Get client fuzzer building and starting (fails straight away)
author Matt Johnston <matt@ucc.asn.au>
date Sun, 18 Oct 2020 12:17:39 +0800
parents dfbe947bdf0d
children
comparison
equal deleted inserted replaced
1740:dfbe947bdf0d 1741:d1b279aa5ed1
27 char* fn = argv[i]; 27 char* fn = argv[i];
28 buf_setlen(input, 0); 28 buf_setlen(input, 0);
29 buf_readfile(input, fn); 29 buf_readfile(input, fn);
30 buf_setpos(input, 0); 30 buf_setpos(input, 0);
31 31
32 /* Run twice to catch problems with statefulness */
32 fuzz.wrapfds = old_fuzz_wrapfds; 33 fuzz.wrapfds = old_fuzz_wrapfds;
33 printf("Running %s once \n", fn); 34 printf("Running %s once \n", fn);
34 LLVMFuzzerTestOneInput(input->data, input->len); 35 LLVMFuzzerTestOneInput(input->data, input->len);
35 printf("Running %s twice \n", fn); 36 printf("Running %s twice \n", fn);
36 LLVMFuzzerTestOneInput(input->data, input->len); 37 LLVMFuzzerTestOneInput(input->data, input->len);