oss-fuzz/projects/brotli/build.sh

14 lines
450 B
Bash
Raw Normal View History

#!/bin/bash -eu
2017-09-26 00:29:46 +00:00
cmake . -DBUILD_TESTING=OFF
make clean
2017-09-26 00:29:46 +00:00
make -j$(nproc) brotlidec-static
$CC $CFLAGS -c -std=c99 -I. -I./c/include c/fuzz/decode_fuzzer.c
$CXX $CXXFLAGS ./decode_fuzzer.o -o $OUT/decode_fuzzer \
$LIB_FUZZING_ENGINE ./libbrotlidec-static.a ./libbrotlicommon-static.a
2017-03-02 17:19:34 +00:00
cp java/org/brotli/integration/fuzz_data.zip $OUT/decode_fuzzer_seed_corpus.zip
chmod a-x $OUT/decode_fuzzer_seed_corpus.zip # we will try to run it otherwise