Skip to content

Commit

Permalink
Do not use fuzzer flags on deps. (AOMediaCodec#1968)
Browse files Browse the repository at this point in the history
  • Loading branch information
vrabaud authored Jan 23, 2024
1 parent b01a8af commit a98fa4f
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions tests/oss-fuzz/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,21 @@
# avif_fuzztest_enc_dec_incr@EncodeDecodeAvifFuzzTest.EncodeDecodeGridValid \
# --sanitizer address

# Add asan as a dependency by default to fix builds.
export CXXFLAGS="${CXXFLAGS} -fsanitize=address"
export CFLAGS="${CFLAGS} -fsanitize=address"
# Reset compile flags to build some deps without fuzzer flags.
export ORIG_CFLAGS="$CFLAGS"
export ORIG_CXXFLAGS="$CXXFLAGS"
export CFLAGS=""
export CXXFLAGS=""

# fuzz flags are problematic with meson (hence no dav1d) and no point in fuzzing fuzztest.
cd ext && bash dav1d.cmd && bash fuzztest.cmd && cd ..

export CFLAGS=$ORIG_CFLAGS
export CXXFLAGS=$ORIG_CXXFLAGS

# build dependencies
cd ext && bash aom.cmd && bash dav1d.cmd && bash fuzztest.cmd && bash libjpeg.cmd && \
bash libsharpyuv.cmd && bash libyuv.cmd && bash zlibpng.cmd && cd ..
cd ext && bash aom.cmd && bash libjpeg.cmd && bash libsharpyuv.cmd && \
bash libyuv.cmd && bash zlibpng.cmd && cd ..

# build libavif
mkdir build
Expand Down

0 comments on commit a98fa4f

Please sign in to comment.