Skip to content

Commit

Permalink
Create a bigger seed corpus for avif_decode_fuzzer (AOMediaCodec#1892)
Browse files Browse the repository at this point in the history
And mostly, name it properly, cf:
https://google.github.io/oss-fuzz/getting-started/new-project-guide/#seed-corpus
"To provide a corpus for my_fuzzer, put my_fuzzer_seed_corpus.zip
file next to ..."
The corpus for avif_decode_fuzzer should hence be
avif_decode_fuzzer_seed_corpus.zip, not avif_decode_seed_corpus.zip
  • Loading branch information
vrabaud authored Dec 21, 2023
1 parent 2b0c430 commit 993b610
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/oss-fuzz/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,10 @@ $CXX $CXXFLAGS -std=c++11 -I../include \
$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/
# WIP: copy seed corpus for fuzztest tests
mkdir $OUT/corpus
unzip $SRC/avif_decode_seed_corpus.zip -d $OUT/corpus
cp $SRC/libavif/tests/data/* $OUT/corpus

# create a bigger seed corpus for avif_decode_fuzzer
zip -j $OUT/avif_decode_fuzzer_seed_corpus.zip $OUT/corpus/*

0 comments on commit 993b610

Please sign in to comment.