Mercurial > dropbear-fuzzcorpus
comparison fetch.sh @ 23:4032153b8b7a
Don't have old/ directory
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sun, 07 Mar 2021 16:10:20 +0800 |
parents | 1a22de6a6b1a |
children |
comparison
equal
deleted
inserted
replaced
22:4cdb539e4b20 | 23:4032153b8b7a |
---|---|
14 for F in $FUZZERS; do | 14 for F in $FUZZERS; do |
15 gsutil cp gs://dropbear-backup.clusterfuzz-external.appspot.com/corpus/libFuzzer/dropbear_$F/latest.zip dl/$F.zip | 15 gsutil cp gs://dropbear-backup.clusterfuzz-external.appspot.com/corpus/libFuzzer/dropbear_$F/latest.zip dl/$F.zip |
16 done | 16 done |
17 | 17 |
18 # need to use "xargs -n 200" to avoid "argument list too long" | 18 # need to use "xargs -n 200" to avoid "argument list too long" |
19 rm -rf old | |
20 mkdir old | |
21 for F in $FUZZERS; do | 19 for F in $FUZZERS; do |
22 mkdir old/$F | |
23 # 40 characters is a hash - those filenames came from a previous corpus | 20 # 40 characters is a hash - those filenames came from a previous corpus |
24 # we want to keep manually named files which are handcrafted seeds | 21 # we want to keep manually named files which are handcrafted seeds |
25 echo $F/???????????????????????????????????????? | xargs -n 200 rm || true | 22 echo $F/???????????????????????????????????????? | xargs -n 200 rm || true |
26 # unzip overwrite, quiet | 23 # unzip overwrite, quiet |
27 (cd $F; unzip -o -q ../dl/$F.zip) | 24 (cd $F; unzip -o -q ../dl/$F.zip) |