[Libarchive] Removed creation of corpus from build script (#3744)

This commit is contained in:
AdamKorcz 2020-04-30 17:12:02 +01:00 committed by GitHub
parent 9f0b9af101
commit aec1054d97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 14 deletions

View File

@ -21,20 +21,8 @@
make -j$(nproc) all
# build seed
SD=seed
echo "Mary had a little lamb,
Its fleece was white as snow;
And everywhere that Mary went
The lamb was sure to go." >> $SD
bzip2 -k $SD && gzip -k $SD && lrzip $SD && lz4 -k $SD \
&& lzop $SD && xz -k $SD && zstd -k $SD \
&& genisoimage -o $SD.iso $SD && lcab $SD $SD.cab \
&& lha c $SD.lzh $SD && rar a $SD.rar $SD \
&& tar -czvf $SD.tar.gz $SD && jar -cvf $SD $SD \
&& zip $SD $SD
zip corpus.zip $SD.* && mv corpus.zip /out/libarchive_fuzzer_seed_corpus.zip
rm $SD.*
cp $SRC/libarchive/contrib/oss-fuzz/corpus.zip\
$OUT/libarchive_fuzzer_seed_corpus.zip
# build fuzzer(s)
$CXX $CXXFLAGS -Ilibarchive \