mirror of
https://github.com/webmproject/libwebp.git
synced 2025-08-29 15:22:12 +02:00
Bump fuzztest dependency.
Also do not restrict the oss-fuzz script to libfuzzer: this allows new fuzzer engines to try the script as is. The libfuzzer restriction is done upstream anyway. Bug: oss-fuzz:69508 Change-Id: I15685bc7193bef3b9ccb0e0a30a6262e7bfb6fb9
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
# This script is meant to be run by the oss-fuzz infrastructure from the script
|
||||
# https://github.com/google/oss-fuzz/blob/master/projects/libwebp/build.sh
|
||||
# It builds the different fuzz targets.
|
||||
# Only the libfuzzer engine is supported.
|
||||
|
||||
# To test changes to this file:
|
||||
# - make changes and commit to your REPO
|
||||
@@ -38,17 +39,9 @@
|
||||
|
||||
set -eu
|
||||
|
||||
# Avoid fuzz engines that do not compile.
|
||||
if [[ "$FUZZING_ENGINE" != "libfuzzer" ]]; then
|
||||
exit
|
||||
fi
|
||||
|
||||
EXTRA_CMAKE_FLAGS=""
|
||||
if [ "$FUZZING_ENGINE" == "libfuzzer" ]
|
||||
then
|
||||
export CXXFLAGS="${CXXFLAGS} -DFUZZTEST_COMPATIBILITY_MODE"
|
||||
EXTRA_CMAKE_FLAGS="-DFUZZTEST_COMPATIBILITY_MODE=libfuzzer"
|
||||
fi
|
||||
export CXXFLAGS="${CXXFLAGS} -DFUZZTEST_COMPATIBILITY_MODE"
|
||||
EXTRA_CMAKE_FLAGS="-DFUZZTEST_COMPATIBILITY_MODE=libfuzzer"
|
||||
|
||||
# limit allocation size to reduce spurious OOMs
|
||||
WEBP_CFLAGS="$CFLAGS -DWEBP_MAX_IMAGE_SIZE=838860800" # 800MiB
|
||||
|
Reference in New Issue
Block a user