1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-10-26 20:25:14 +03:00
libxml2/fuzz
2022-04-21 04:26:52 +02:00
..
static_seed Fix fuzzer test with VPATH build 2022-02-14 18:06:38 +01:00
.gitignore Fix fuzz/.gitignore after fixing VPATH build 2022-02-19 19:26:42 +01:00
fuzz.c Make xmlFuzzReadString return a zero size in error case 2022-02-12 15:54:54 +01:00
fuzz.h Check for feature flags in fuzzer tests 2021-02-22 22:29:28 +01:00
genSeed.c Implement xpath1() XPointer scheme 2022-04-21 04:26:52 +02:00
html.c Improve fuzzer stability 2021-02-22 22:29:28 +01:00
html.dict Add charset names to fuzzing dictionaries 2021-02-22 13:21:38 +01:00
html.options Reduce some fuzzer timeouts 2021-03-01 20:56:40 +01:00
Makefile.am Simplify 'make check' targets 2022-04-04 05:41:51 +02:00
README Add a couple of libFuzzer targets 2020-06-05 13:53:11 +02:00
regexp.c Improve fuzzer stability 2021-02-22 22:29:28 +01:00
regexp.dict Update fuzzing code 2020-07-31 11:55:13 +02:00
regexp.options Enforce maximum length of fuzz input 2020-12-16 16:12:07 +01:00
schema.c Improve fuzzer stability 2021-02-22 22:29:28 +01:00
schema.dict Fuzz target for XML Schemas 2020-06-23 16:20:27 +02:00
schema.options Enforce maximum length of fuzz input 2020-12-16 16:12:07 +01:00
testFuzzer.c Check for feature flags in fuzzer tests 2021-02-22 22:29:28 +01:00
uri.c Enforce maximum length of fuzz input 2020-12-16 16:12:07 +01:00
uri.options Reduce some fuzzer timeouts 2021-03-01 20:56:40 +01:00
xml.c Improve fuzzer stability 2021-02-22 22:29:28 +01:00
xml.dict Add charset names to fuzzing dictionaries 2021-02-22 13:21:38 +01:00
xml.options Enforce maximum length of fuzz input 2020-12-16 16:12:07 +01:00
xpath.c Improve fuzzer stability 2021-02-22 22:29:28 +01:00
xpath.dict Add XPath and XPointer fuzzer 2020-08-06 14:12:32 +02:00
xpath.options Enforce maximum length of fuzz input 2020-12-16 16:12:07 +01: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