Mercurial > dropbear
diff fuzz-harness.c @ 1745:a6824c54962a
Merge fuzz branch
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sun, 18 Oct 2020 22:53:44 +0800 |
parents | d1b279aa5ed1 |
children |
line wrap: on
line diff
--- a/fuzz-harness.c Thu Oct 08 11:00:04 2020 +0800 +++ b/fuzz-harness.c Sun Oct 18 22:53:44 2020 +0800 @@ -9,7 +9,6 @@ buffer *input = buf_new(100000); for (i = 1; i < argc; i++) { - printf("arg %s\n", argv[i]); #if DEBUG_TRACE if (strcmp(argv[i], "-v") == 0) { debug_trace = 1; @@ -30,6 +29,7 @@ buf_readfile(input, fn); buf_setpos(input, 0); + /* Run twice to catch problems with statefulness */ fuzz.wrapfds = old_fuzz_wrapfds; printf("Running %s once \n", fn); LLVMFuzzerTestOneInput(input->data, input->len);