diff options
author | Matt Johnston <matt@ucc.asn.au> | 2021-03-07 16:30:33 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2021-03-07 16:30:33 +0800 |
commit | c0ed29ea0290206d5f3f3a1c8ac5ac630f7f2f7c (patch) | |
tree | 8cd27c9d750397f47ae2859f42408d782549e115 | |
parent | 91ca561d7a3148f858b7daebf860bea937ec9b08 (diff) |
fuzz: split long argument list with xargs
-rwxr-xr-x | fuzzers_test.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fuzzers_test.sh b/fuzzers_test.sh index dab4888..b27e0e2 100755 --- a/fuzzers_test.sh +++ b/fuzzers_test.sh @@ -6,7 +6,8 @@ result=0 test -d fuzzcorpus && hg --repository fuzzcorpus/ pull || hg clone https://hg.ucc.asn.au/dropbear-fuzzcorpus fuzzcorpus || exit 1 for f in `make list-fuzz-targets`; do - ./$f fuzzcorpus/$f/* || result=1 + # use xargs to split the too-long argument list + echo fuzzcorpus/$f/* | xargs -n 1000 ./$f || result=1 done exit $result |