1
0
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:
Nick Wellnhofer 2024-03-20 18:45:10 +01:00
parent 5ea2970357
commit d4d1f3f33d

View File

@ -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/