Mercurial > dropbear-fuzzcorpus
changeset 26:c87782d4bd46
Make robust for latest.zip being missing
Handle newly added targets
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sat, 14 Dec 2024 20:27:39 +0800 (11 days ago) |
parents | 0ef1e51e583f |
children | 6d889f88a97d |
files | fetch.sh |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/fetch.sh Thu Oct 27 19:09:07 2022 +0800 +++ b/fetch.sh Sat Dec 14 20:27:39 2024 +0800 @@ -12,15 +12,17 @@ rm -rf dl mkdir dl for F in $FUZZERS; do - gsutil cp gs://dropbear-backup.clusterfuzz-external.appspot.com/corpus/libFuzzer/dropbear_$F/latest.zip dl/$F.zip + gsutil cp gs://dropbear-backup.clusterfuzz-external.appspot.com/corpus/libFuzzer/dropbear_$F/latest.zip dl/$F.zip \ + || gsutil cp gs://dropbear-backup.clusterfuzz-external.appspot.com/corpus/libFuzzer/dropbear_$F/public.zip dl/$F.zip done # need to use "xargs -n 200" to avoid "argument list too long" for F in $FUZZERS; do # 40 characters is a hash - those filenames came from a previous corpus # we want to keep manually named files which are handcrafted seeds - echo $F/???????????????????????????????????????? | xargs -n 200 rm || true + (echo $F/???????????????????????????????????????? | xargs -n 200 rm) || true # unzip overwrite, quiet + mkdir -p $F (cd $F; unzip -o -q ../dl/$F.zip) done