1
0
mirror of https://gitlab.gnome.org/GNOME/libxslt synced 2025-11-06 23:49:25 +03:00
Files
libxslt/tests/fuzz
Nick Wellnhofer 971d5c4dd1 tests: Port most of the test suite to C
Use runtest.c from libxml2 as a starting point.

This finally allows us to run most of tests with CMake and Autotools
VPATH builds.
2022-09-07 22:18:55 +02:00
..
2019-05-20 13:08:54 +02:00
2019-05-08 12:21:50 +02:00
2019-05-08 12:21:50 +02:00
2019-04-15 18:48:35 +02:00
2022-09-01 08:19:00 +02:00
2019-05-08 12:21:50 +02:00
2019-05-20 13:08:54 +02:00
2019-04-15 18:48:35 +02:00
2019-05-08 12:21:50 +02:00
2019-05-20 13:08:54 +02:00
2019-05-20 13:08:54 +02:00

libFuzzer instructions for libxslt
==================================

Set compiler and options. Disable float-divide-by-zero and pointer-overflow
sanitizers when using UBSan.

    export CC=clang
    export CFLAGS="-g -fsanitize=fuzzer-no-link,address,undefined \
        -fno-sanitize=float-divide-by-zero,pointer-overflow \
        -fno-sanitize-recover=all \
        -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION"

Build libxml2 with instrumentation:

    cd /path/to/libxml2
    ./configure --without-python
    make

Build libxslt with instrumentation:

    cd /path/to/libxslt
    ./configure --without-python --with-libxml-src=/path/to/libxml2
    make

Run fuzzers:

    make -C tests/fuzz fuzz-xslt
    make -C tests/fuzz fuzz-xpath