Mercurial > dropbear
comparison fuzz-harness.c @ 1357:08f4fa4dc6a0 fuzz
closer to working
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sat, 20 May 2017 13:23:16 +0800 |
parents | 7618759e9327 |
children | 6b89eb92f872 |
comparison
equal
deleted
inserted
replaced
1356:3677a510f545 | 1357:08f4fa4dc6a0 |
---|---|
5 extern int LLVMFuzzerTestOneInput(const unsigned char *data, size_t size); | 5 extern int LLVMFuzzerTestOneInput(const unsigned char *data, size_t size); |
6 | 6 |
7 int main(int argc, char ** argv) { | 7 int main(int argc, char ** argv) { |
8 int i; | 8 int i; |
9 buffer *input = buf_new(100000); | 9 buffer *input = buf_new(100000); |
10 | |
11 #if DROPBEAR_TRACE | |
12 debug_trace = 1; | |
13 #endif | |
10 | 14 |
11 for (i = 1; i < argc; i++) { | 15 for (i = 1; i < argc; i++) { |
12 char* fn = argv[i]; | 16 char* fn = argv[i]; |
13 buf_setlen(input, 0); | 17 buf_setlen(input, 0); |
14 buf_readfile(input, fn); | 18 buf_readfile(input, fn); |