mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2024-12-23 17:33:50 +03:00
fuzz: Enable API fuzzer on OSS-Fuzz
This commit is contained in:
parent
5ea2970357
commit
d4d1f3f33d
@ -22,7 +22,7 @@ cd fuzz
|
||||
make clean-corpus
|
||||
make fuzz.o
|
||||
|
||||
for fuzzer in html regexp schema uri valid xinclude xml xpath; do
|
||||
for fuzzer in api html regexp schema uri valid xinclude xml xpath; do
|
||||
make $fuzzer.o
|
||||
# Link with $CXX
|
||||
$CXX $CXXFLAGS \
|
||||
@ -31,8 +31,10 @@ for fuzzer in html regexp schema uri valid xinclude xml xpath; do
|
||||
$LIB_FUZZING_ENGINE \
|
||||
../.libs/libxml2.a -Wl,-Bstatic -lz -llzma -Wl,-Bdynamic
|
||||
|
||||
[ -e seed/$fuzzer ] || make seed/$fuzzer.stamp
|
||||
zip -j $OUT/${fuzzer}_seed_corpus.zip seed/$fuzzer/*
|
||||
if [ $fuzzer != api ]; then
|
||||
[ -e seed/$fuzzer ] || make seed/$fuzzer.stamp
|
||||
zip -j $OUT/${fuzzer}_seed_corpus.zip seed/$fuzzer/*
|
||||
fi
|
||||
done
|
||||
|
||||
cp *.dict *.options $OUT/
|
||||
|
Loading…
Reference in New Issue
Block a user