aosp12/external/libxml2/fuzz
hcl 7be3fd486c init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
..
.gitignore init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
Makefile.am init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
README init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
fuzz.c init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
fuzz.h init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
genSeed.c init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
html.c init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
html.dict init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
html.options init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
regexp.c init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
regexp.dict init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
regexp.options init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
schema.c init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
schema.dict init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
schema.options init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
testFuzzer.c init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
uri.c init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
uri.options init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
xml.c init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
xml.dict init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
xml.options init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
xpath.c init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
xpath.dict init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
xpath.options init from android-12.1.0_r8 2023-01-09 17:11:35 +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