fix OSS-Fuzz build
Fixes: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=64398 Signed-off-by: David Korczynski <david@adalogics.com>
This commit is contained in:
parent
e5700656b3
commit
a77af68d92
@ -18,9 +18,15 @@
|
|||||||
# This script is meant to be run by
|
# This script is meant to be run by
|
||||||
# https://github.com/google/oss-fuzz/blob/master/projects/miniz/Dockerfile
|
# https://github.com/google/oss-fuzz/blob/master/projects/miniz/Dockerfile
|
||||||
|
|
||||||
|
cat << "EOF" > miniz_export.h
|
||||||
|
#ifndef MINIZ_EXPORT
|
||||||
|
#define MINIZ_EXPORT
|
||||||
|
#endif
|
||||||
|
EOF
|
||||||
|
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
cmake .. -DAMALGAMATE_SOURCES=ON -DBUILD_SHARED_LIBS=OFF -DBUILD_FUZZERS=ON
|
cmake .. -DAMALGAMATE_SOURCES=ON -DBUILD_SHARED_LIBS=OFF -DBUILD_FUZZERS=ON -DBUILD_TESTS=OFF
|
||||||
make -j$(nproc)
|
make -j$(nproc)
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
@ -39,4 +45,4 @@ done
|
|||||||
rm -f $OUT/zip_fuzzer_seed_corpus.zip
|
rm -f $OUT/zip_fuzzer_seed_corpus.zip
|
||||||
zip $OUT/zip_fuzzer_seed_corpus.zip $OUT/seed_corpus.zip
|
zip $OUT/zip_fuzzer_seed_corpus.zip $OUT/seed_corpus.zip
|
||||||
|
|
||||||
cp tests/zip.dict $OUT/zip_fuzzer.dict
|
cp tests/zip.dict $OUT/zip_fuzzer.dict
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user