Add fuzz/git_all_corpora

This commit is contained in:
Tim Rühsen 2017-07-19 15:02:03 +02:00
parent bf0f1cda52
commit 280c130f73
1 changed files with 12 additions and 0 deletions

12
fuzz/get_all_corpora Executable file
View File

@ -0,0 +1,12 @@
#!/bin/sh -eu
#
#
if $(grep -q '^#define WITH_LIBIDN2 1' ../config.h); then RUNTIME="_idn2";
elif $(grep -q '^#define WITH_LIBIDN 1' ../config.h); then RUNTIME="_idn";
elif $(grep -q '^#define WITH_LIBICU 1' ../config.h); then RUNTIME="_icu";
else RUNTIME=""; fi
for fuzzer in libpsl${RUNTIME}*_fuzzer; do
./get_ossfuzz_corpora $fuzzer
done