Skip to content

Commit c0ed29e

Browse files
committed
fuzz: split long argument list with xargs
1 parent 91ca561 commit c0ed29e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fuzzers_test.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ result=0
66

77
test -d fuzzcorpus && hg --repository fuzzcorpus/ pull || hg clone https://hg.ucc.asn.au/dropbear-fuzzcorpus fuzzcorpus || exit 1
88
for f in `make list-fuzz-targets`; do
9-
./$f fuzzcorpus/$f/* || result=1
9+
# use xargs to split the too-long argument list
10+
echo fuzzcorpus/$f/* | xargs -n 1000 ./$f || result=1
1011
done
1112

1213
exit $result

0 commit comments

Comments
 (0)