1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-10-26 20:25:14 +03:00
libxml2/fuzz
Nick Wellnhofer eac1c7e2e5 Fuzz target for XML Schemas
This only tests the schema parser for now.
2020-06-23 16:20:27 +02:00
..
seed Add a couple of libFuzzer targets 2020-06-05 13:53:11 +02:00
.gitignore Fuzz target for XML Schemas 2020-06-23 16:20:27 +02:00
fuzz.c Fuzz target for XML Schemas 2020-06-23 16:20:27 +02:00
fuzz.h Fuzz target for XML Schemas 2020-06-23 16:20:27 +02:00
html.c Fuzz target for HTML parser 2020-06-15 15:23:38 +02:00
html.dict Fuzz target for HTML parser 2020-06-15 15:23:38 +02:00
html.options Fuzz target for HTML parser 2020-06-15 15:23:38 +02:00
Makefile.am Fuzz target for XML Schemas 2020-06-23 16:20:27 +02:00
README Add a couple of libFuzzer targets 2020-06-05 13:53:11 +02:00
regexp.c Add a couple of libFuzzer targets 2020-06-05 13:53:11 +02:00
regexp.dict Add a couple of libFuzzer targets 2020-06-05 13:53:11 +02:00
schema.c Fuzz target for XML Schemas 2020-06-23 16:20:27 +02:00
schema.dict Fuzz target for XML Schemas 2020-06-23 16:20:27 +02:00
schema.options Fuzz target for XML Schemas 2020-06-23 16:20:27 +02:00
schemaSeed.c Fuzz target for XML Schemas 2020-06-23 16:20:27 +02:00
testFuzzer.c Add a couple of libFuzzer targets 2020-06-05 13:53:11 +02:00
uri.c Add a couple of libFuzzer targets 2020-06-05 13:53:11 +02:00
xml.c Add a couple of libFuzzer targets 2020-06-05 13:53:11 +02:00
xml.dict Add a couple of libFuzzer targets 2020-06-05 13:53:11 +02:00
xml.options Add options file for xml fuzzer 2020-06-09 13:53:06 +02:00
xmlSeed.c Fuzz target for XML Schemas 2020-06-23 16:20:27 +02:00

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