Mercurial > dropbear
diff fuzzers_test.sh @ 1808:42daf3044618
fuzz: split long argument list with xargs
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sun, 07 Mar 2021 16:30:33 +0800 |
parents | 8b27de2c92ee |
children | fd00aeff38fd |
line wrap: on
line diff
--- a/fuzzers_test.sh Sat Mar 06 23:44:16 2021 +0800 +++ b/fuzzers_test.sh Sun Mar 07 16:30:33 2021 +0800 @@ -6,7 +6,8 @@ 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