1348
|
1 #include "includes.h" |
1354
|
2 #include "buffer.h" |
|
3 #include "dbutil.h" |
1348
|
4 |
|
5 extern int LLVMFuzzerTestOneInput(const unsigned char *data, size_t size); |
|
6 |
|
7 int main(int argc, char ** argv) { |
1354
|
8 int i; |
|
9 buffer *input = buf_new(100000); |
|
10 |
1357
|
11 #if DROPBEAR_TRACE |
|
12 debug_trace = 1; |
|
13 #endif |
|
14 |
1354
|
15 for (i = 1; i < argc; i++) { |
|
16 char* fn = argv[i]; |
|
17 buf_setlen(input, 0); |
|
18 buf_readfile(input, fn); |
|
19 buf_setpos(input, 0); |
|
20 |
|
21 printf("Running %s\n", fn); |
|
22 LLVMFuzzerTestOneInput(input->data, input->len); |
|
23 printf("Done %s\n", fn); |
|
24 } |
|
25 |
|
26 printf("Finished\n"); |
|
27 |
1348
|
28 return 0; |
|
29 } |