summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorEvgeny Vereshchagin <evvers@ya.ru>2022-01-20 05:06:49 +0000
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-01-20 15:53:48 +0900
commite0ec0450e98ae5be57e189fea810a4f484f3a07b (patch)
treec8364f1dda5f05d62f3db3fd4db5d8395f65905c /tools
parent98b1eb711cfc70776fefd3d4ec437a6a4f9aeff2 (diff)
downloadsystemd-e0ec0450e98ae5be57e189fea810a4f484f3a07b.tar.gz
tests: fuzz etc_hosts_parse
That's just a follow-up to https://github.com/systemd/systemd/pull/22179
Diffstat (limited to 'tools')
-rwxr-xr-xtools/oss-fuzz.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/oss-fuzz.sh b/tools/oss-fuzz.sh
index cff90145ce..1d7412a81b 100755
--- a/tools/oss-fuzz.sh
+++ b/tools/oss-fuzz.sh
@@ -73,6 +73,11 @@ done
zip -jqr "$OUT/fuzz-bcd_seed_corpus.zip" "$bcd"
rm -rf "$bcd"
+hosts=$(mktemp)
+wget -O "$hosts" https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
+zip -jq "$OUT/fuzz-etc-hosts_seed_corpus.zip" "$hosts"
+rm -rf "$hosts"
+
# 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