dis-bench / src /libxml2 /prep.sh
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
716 Bytes
git clone https://gitlab.gnome.org/GNOME/libxml2.git
cd libxml2 && git checkout c7260a47f19e01f4f663b6a56fbdc2dafd8a6e7e
# set CC ..
export CFLAGS="$CFLAGS -fsanitize=unsigned-integer-overflow -fno-sanitize-recover=unsigned-integer-overflow"
export CXXFLAGS="$CXXFLAGS -fsanitize=unsigned-integer-overflow -fno-sanitize-recover=unsigned-integer-overflow"
export V=1
./autogen.sh \
--disable-shared \
--without-debug \
--without-ftp \
--without-http \
--without-legacy \
--without-python
make
cd fuzz
make clean-corpus
make fuzz.o
make xml.o
$CXX $CXXFLAGS \
xml.o fuzz.o \
-o libxml2_xml \
$LIB_FUZZING_ENGINE \
../.libs/libxml2.a -Wl,-Bstatic -lz -llzma -Wl,-Bdynamic