summaryrefslogtreecommitdiff
path: root/fuzzers_test.sh
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2021-03-07 16:30:33 +0800
committerMatt Johnston <matt@ucc.asn.au>2021-03-07 16:30:33 +0800
commit8fe0618d9b068ee386af87472ba16d3999f021cf (patch)
tree4c7ce223c4baf2722abdd77766f26ce1c4f5ffa2 /fuzzers_test.sh
parentf27f0d33d3ccb3787cf55461d1eed1cfc6d8d0d8 (diff)
downloaddropbear-8fe0618d9b068ee386af87472ba16d3999f021cf.tar.gz
fuzz: split long argument list with xargs
Diffstat (limited to 'fuzzers_test.sh')
-rwxr-xr-xfuzzers_test.sh3
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