android13/external/libxml2/fuzz
liiir1985 7f62dcda9f initial 2024-06-22 20:45:49 +08:00
..
Makefile.am initial 2024-06-22 20:45:49 +08:00
README initial 2024-06-22 20:45:49 +08:00
fuzz.c initial 2024-06-22 20:45:49 +08:00
fuzz.h initial 2024-06-22 20:45:49 +08:00
genSeed.c initial 2024-06-22 20:45:49 +08:00
html.c initial 2024-06-22 20:45:49 +08:00
html.dict initial 2024-06-22 20:45:49 +08:00
html.options initial 2024-06-22 20:45:49 +08:00
regexp.c initial 2024-06-22 20:45:49 +08:00
regexp.dict initial 2024-06-22 20:45:49 +08:00
regexp.options initial 2024-06-22 20:45:49 +08:00
schema.c initial 2024-06-22 20:45:49 +08:00
schema.dict initial 2024-06-22 20:45:49 +08:00
schema.options initial 2024-06-22 20:45:49 +08:00
testFuzzer.c initial 2024-06-22 20:45:49 +08:00
uri.c initial 2024-06-22 20:45:49 +08:00
uri.options initial 2024-06-22 20:45:49 +08:00
xml.c initial 2024-06-22 20:45:49 +08:00
xml.dict initial 2024-06-22 20:45:49 +08:00
xml.options initial 2024-06-22 20:45:49 +08:00
xpath.c initial 2024-06-22 20:45:49 +08:00
xpath.dict initial 2024-06-22 20:45:49 +08:00
xpath.options initial 2024-06-22 20:45:49 +08:00

README

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