From c0ed29ea0290206d5f3f3a1c8ac5ac630f7f2f7c Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Sun, 7 Mar 2021 16:30:33 +0800 Subject: fuzz: split long argument list with xargs --- fuzzers_test.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3