comparison fuzz-harness.c @ 1740:dfbe947bdf0d fuzz

Make wrapfd share a common buffer for all FDs
author Matt Johnston <matt@ucc.asn.au>
date Thu, 15 Oct 2020 22:46:24 +0800
parents bff41a61a1b6
children d1b279aa5ed1
comparison
equal deleted inserted replaced
1739:13d834efc376 1740:dfbe947bdf0d
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 10
11 for (i = 1; i < argc; i++) { 11 for (i = 1; i < argc; i++) {
12 printf("arg %s\n", argv[i]);
13 #if DEBUG_TRACE 12 #if DEBUG_TRACE
14 if (strcmp(argv[i], "-v") == 0) { 13 if (strcmp(argv[i], "-v") == 0) {
15 debug_trace = 1; 14 debug_trace = 1;
16 TRACE(("debug printing on")) 15 TRACE(("debug printing on"))
17 } 16 }