File: fuzzing.md

package info (click to toggle)
libxmlb 0.3.24-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,052 kB
  • sloc: ansic: 12,692; python: 569; xml: 83; sh: 81; makefile: 2
file content (19 lines) | stat: -rw-r--r-- 588 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Fuzzing
=======

    CC=afl-gcc meson --default-library=static ../
    AFL_HARDEN=1 ninja

Breaking XMLb
-------------

    afl-fuzz -m 300 -i fuzzing-src -o findings ./src/xb-tool --force dump @@
    afl-fuzz -m 300 -i fuzzing-src -o findings ./src/xb-tool query @@ "component/id"
    mkdir -p fuzzing-src
    ./src/xb-tool compile fuzzing-src/appdata.xmlb ../data/fuzzing-src/appdata.xml

Breaking XPath
--------------

    ./src/xb-tool compile xpath.xmlb ../data/fuzzing-src/appdata.xml
    afl-fuzz -m 300 -i ../data/fuzzing-xpath/ -o findings ./src/xb-tool query-file xpath.xmlb @@