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
commitc0ed29ea0290206d5f3f3a1c8ac5ac630f7f2f7c (patch)
tree8cd27c9d750397f47ae2859f42408d782549e115 /fuzzers_test.sh
parent91ca561d7a3148f858b7daebf860bea937ec9b08 (diff)
downloaddropbear-c0ed29ea0290206d5f3f3a1c8ac5ac630f7f2f7c.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