[strongswan] Changes for PA-TNC and PB-TNC fuzzers (#1514)

This commit is contained in:
Tobias Brunner 2018-06-13 16:15:28 +02:00 committed by jonathanmetzman
parent 1bfe76536e
commit 5d90f783ce
1 changed files with 8 additions and 2 deletions

View File

@ -17,7 +17,14 @@
./autogen.sh
./configure CFLAGS="$CFLAGS -DNO_CHECK_MEMWIPE" --enable-fuzzing --with-libfuzzer=$LIB_FUZZING_ENGINE --enable-monolithic --disable-shared --enable-static
./configure CFLAGS="$CFLAGS -DNO_CHECK_MEMWIPE" \
--enable-imc-test \
--enable-tnccs-20 \
--enable-fuzzing \
--with-libfuzzer=$LIB_FUZZING_ENGINE \
--enable-monolithic \
--disable-shared \
--enable-static
make -j$(nproc)
@ -26,7 +33,6 @@ for f in $fuzzers; do
fuzzer=$(basename $f)
cp $f $OUT/
corpus=${fuzzer#fuzz_}
corpus=${corpus%%_*}
if [ -d "fuzzing-corpora/${corpus}" ]; then
zip -rj $OUT/${fuzzer}_seed_corpus.zip fuzzing-corpora/${corpus}
fi