Download src/libxml2/prep.sh from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 716 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/libxml2/prep.sh
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/libxml2/prep.sh
-
curl -L -o prep.sh https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/libxml2/prep.sh
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 | |