Skip to content

Commit

Permalink
tests/oss-fuzz/build.sh: Minor cleanup
Browse files Browse the repository at this point in the history
A follow-up to commit commit 60bbef7.
Generalize a comment, and link with libyuv.a, which will be necessary
when libavif.a is no longer a combined archive library.
  • Loading branch information
wantehchang committed Nov 1, 2023
1 parent 40d5d01 commit 7aa84ae
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/oss-fuzz/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# https://github.com/google/oss-fuzz/blob/master/projects/libavif/build.sh
# It builds the different fuzz targets.

# build dav1d
# build dependencies
cd ext && bash dav1d.cmd && bash libyuv.cmd && cd ..

# build libavif
Expand All @@ -33,7 +33,8 @@ ninja
# build fuzzer
$CXX $CXXFLAGS -std=c++11 -I../include \
../tests/oss-fuzz/avif_decode_fuzzer.cc -o $OUT/avif_decode_fuzzer \
$LIB_FUZZING_ENGINE libavif.a ../ext/dav1d/build/src/libdav1d.a
$LIB_FUZZING_ENGINE libavif.a ../ext/dav1d/build/src/libdav1d.a \
../ext/libyuv/build/libyuv.a

# copy seed corpus
cp $SRC/avif_decode_seed_corpus.zip $OUT/

0 comments on commit 7aa84ae

Please sign in to comment.