mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-01-11 05:17:37 +03:00
00ed736eec
- XML fuzzer Currently tests the pull parser, push parser and reader, as well as serialization. Supports splitting fuzz data into multiple documents for things like external DTDs or entities. The seed corpus is built from parts of the test suite. - Regexp fuzzer Seed corpus was statically generated from test suite. - URI fuzzer Tests parsing and most other functions from uri.c.
20 lines
396 B
Plaintext
20 lines
396 B
Plaintext
libFuzzer instructions for libxml2
|
|
==================================
|
|
|
|
Set compiler and options:
|
|
|
|
export CC=clang
|
|
export CFLAGS="-g -fsanitize=fuzzer-no-link,address,undefined \
|
|
-fno-sanitize-recover=all \
|
|
-DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION"
|
|
|
|
Build libxml2 with instrumentation:
|
|
|
|
./configure --without-python
|
|
make
|
|
|
|
Run fuzzers:
|
|
|
|
make -C fuzz fuzz-xml
|
|
|