2016-12-08 14:41:39 +00:00
|
|
|
#!/bin/bash -eu
|
|
|
|
|
2017-09-26 00:29:46 +00:00
|
|
|
cmake . -DBUILD_TESTING=OFF
|
2016-12-08 14:41:39 +00:00
|
|
|
make clean
|
2017-09-26 00:29:46 +00:00
|
|
|
make -j$(nproc) brotlidec-static
|
2016-12-08 14:41:39 +00:00
|
|
|
|
2018-06-18 14:22:10 +00:00
|
|
|
$CXX $CXXFLAGS -std=c99 -I. \
|
|
|
|
c/fuzz/decode_fuzzer.c -I./c/include -o $OUT/decode_fuzzer \
|
2017-09-26 00:29:46 +00:00
|
|
|
-lFuzzingEngine ./libbrotlidec-static.a ./libbrotlicommon-static.a
|
2016-12-08 14:41:39 +00:00
|
|
|
|
2017-03-02 17:19:34 +00:00
|
|
|
cp java/org/brotli/integration/fuzz_data.zip $OUT/decode_fuzzer_seed_corpus.zip
|
2016-12-08 21:45:14 +00:00
|
|
|
chmod a-x $OUT/decode_fuzzer_seed_corpus.zip # we will try to run it otherwise
|