summaryrefslogtreecommitdiff
path: root/fuzz/README.md
diff options
context:
space:
mode:
authorGravatar Vincent Rischmann2022-08-21 14:00:17 +0200
committerGravatar Vincent Rischmann2022-08-21 14:27:14 +0200
commit8376d2bf6ee6817d6ae9965c50627af89816cbeb (patch)
treee77a85be6cc38524ef2e0752407ac7d690347b90 /fuzz/README.md
parentfuzz: reread the data from the table (diff)
downloadzig-sqlite-8376d2bf6ee6817d6ae9965c50627af89816cbeb.tar.gz
zig-sqlite-8376d2bf6ee6817d6ae9965c50627af89816cbeb.tar.xz
zig-sqlite-8376d2bf6ee6817d6ae9965c50627af89816cbeb.zip
fuzz: explain how to debug
Diffstat (limited to 'fuzz/README.md')
-rw-r--r--fuzz/README.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/fuzz/README.md b/fuzz/README.md
index 6b5f4ae..8bdfd11 100644
--- a/fuzz/README.md
+++ b/fuzz/README.md
@@ -40,3 +40,12 @@ You'll have to do this as root:
40``` 40```
41$ AFL_SKIP_CPUFREQ=1 afl-fuzz -i - -o fuzz/outputs -- ./zig-out/bin/fuzz 41$ AFL_SKIP_CPUFREQ=1 afl-fuzz -i - -o fuzz/outputs -- ./zig-out/bin/fuzz
42``` 42```
43
44# Debugging a crash
45
46If `afl-fuzz` finds a crash it will be added to `fuzz/outputs/default/crashes.XYZ`.
47
48To debug the crash you can run the fuzz binary and giving it the content of the crash via stdin, for example:
49```
50$ ./zig-out/bin/fuzz < 'fuzz/outputs/default/crashes.2021-12-31-12:43:12/id:000000,sig:06,src:000004,time:210548,execs:1011599,op:havoc,rep:2'
51```