summaryrefslogtreecommitdiff
path: root/tools/oss-fuzz.sh
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-07-07 17:43:40 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-10-02 09:41:25 +0200
commit93b575b26605c347a717b2aa24ddf9cad08b8080 (patch)
tree4441dbd75bba7a4bbcfed108f436ec5f84162e1c /tools/oss-fuzz.sh
parent861cf7c95bb64acba668659e6389e428aa488810 (diff)
downloadsystemd-93b575b26605c347a717b2aa24ddf9cad08b8080.tar.gz
fuzz: rename "fuzz-corpus" directory to just "fuzz"
Also, all corpus subdirectories are named exactly the same as the fuzzer they are for. This makes the paths a bit longer, but easier.
Diffstat (limited to 'tools/oss-fuzz.sh')
-rwxr-xr-xtools/oss-fuzz.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/oss-fuzz.sh b/tools/oss-fuzz.sh
index 2db5b4cc44..4d11e81ed6 100755
--- a/tools/oss-fuzz.sh
+++ b/tools/oss-fuzz.sh
@@ -35,8 +35,10 @@ fi
meson $build -D$fuzzflag -Db_lundef=false
ninja -C $build fuzzers
-for d in "$(dirname "$0")/../test/fuzz-corpus/"*; do
- zip -jqr $OUT/fuzz-$(basename "$d")_seed_corpus.zip "$d"
+# The seed corpus is a separate flat archive for each fuzzer,
+# with a fixed name ${fuzzer}_seed_corpus.zip.
+for d in "$(dirname "$0")/../test/fuzz/fuzz-"*; do
+ zip -jqr $OUT/$(basename "$d")_seed_corpus.zip "$d"
done
# get fuzz-dns-packet corpus