File: README

package info (click to toggle)
libxslt 1.1.43-0.3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 25,556 kB
  • sloc: xml: 66,120; ansic: 36,088; sh: 4,582; python: 3,206; makefile: 1,378; javascript: 470; perl: 34
file content (29 lines) | stat: -rw-r--r-- 741 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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