mirror of https://github.com/google/oss-fuzz.git
[libxml2] Use seed corpus from libxml2/test for all fuzz targets + xml.dict.
This commit is contained in:
parent
0622421290
commit
e1ded36332
|
@ -21,10 +21,14 @@
|
|||
make -j$(nproc) clean
|
||||
make -j$(nproc) all
|
||||
|
||||
seed_corpus_temp_file="$OUT/xml_seed_corpus.zip"
|
||||
zip -r $seed_corpus_temp_file $SRC/libxml2/test
|
||||
|
||||
for fuzzer in libxml2_xml_read_memory_fuzzer libxml2_xml_reader_for_file_fuzzer libxml2_xml_regexp_compile_fuzzer; do
|
||||
$CXX $CXXFLAGS -std=c++11 -Iinclude/ \
|
||||
$SRC/$fuzzer.cc -o $OUT/$fuzzer \
|
||||
-lFuzzingEngine .libs/libxml2.a
|
||||
done
|
||||
|
||||
cp $SRC/*.dict $SRC/*.options $OUT/
|
||||
cp $SRC/*.dict $OUT/$fuzzer.dict
|
||||
cp $seed_corpus_temp_file $OUT/${fuzzer}_seed_corpus.zip
|
||||
done
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
[libfuzzer]
|
||||
dict = xml.dict
|
|
@ -1,2 +0,0 @@
|
|||
[libfuzzer]
|
||||
dict = xml.dict
|
Loading…
Reference in New Issue