aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorEvgeny Vereshchagin <evvers@ya.ru>2018-08-01 10:25:26 +0000
committerLennart Poettering <lennart@poettering.net>2018-10-10 10:13:30 +0200
commit6315d12bbad965d22b724b01af5efdf408bc8005 (patch)
treeeac50dd176ab95ff0d9d11434b61e504d9f2f47b /tools
parentjson: add test (diff)
downloadsystemd-6315d12bbad965d22b724b01af5efdf408bc8005.tar.gz
systemd-6315d12bbad965d22b724b01af5efdf408bc8005.tar.bz2
systemd-6315d12bbad965d22b724b01af5efdf408bc8005.zip
tests: add a fuzzer for the json parser and dumper
Diffstat (limited to 'tools')
-rwxr-xr-xtools/oss-fuzz.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/oss-fuzz.sh b/tools/oss-fuzz.sh
index 4d11e81ed..df72e47d7 100755
--- a/tools/oss-fuzz.sh
+++ b/tools/oss-fuzz.sh
@@ -48,5 +48,8 @@ zip -jqr $OUT/fuzz-dns-packet_seed_corpus.zip $df/packet
install -Dt $OUT/src/shared/ $build/src/shared/libsystemd-shared-*.so
+wget -O $OUT/fuzz-json_seed_corpus.zip https://storage.googleapis.com/skia-fuzzer/oss-fuzz/skjson_seed_corpus.zip
+wget -O $OUT/fuzz-json.dict https://raw.githubusercontent.com/rc0r/afl-fuzz/master/dictionaries/json.dict
+
find $build -maxdepth 1 -type f -executable -name "fuzz-*" -exec mv {} $OUT \;
cp src/fuzz/*.options $OUT