diff options
| author | 2022-08-21 14:00:17 +0200 | |
|---|---|---|
| committer | 2022-08-21 14:27:14 +0200 | |
| commit | 8376d2bf6ee6817d6ae9965c50627af89816cbeb (patch) | |
| tree | e77a85be6cc38524ef2e0752407ac7d690347b90 | |
| parent | fuzz: reread the data from the table (diff) | |
| download | zig-sqlite-8376d2bf6ee6817d6ae9965c50627af89816cbeb.tar.gz zig-sqlite-8376d2bf6ee6817d6ae9965c50627af89816cbeb.tar.xz zig-sqlite-8376d2bf6ee6817d6ae9965c50627af89816cbeb.zip | |
fuzz: explain how to debug
| -rw-r--r-- | fuzz/README.md | 9 |
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 | |||
| 46 | If `afl-fuzz` finds a crash it will be added to `fuzz/outputs/default/crashes.XYZ`. | ||
| 47 | |||
| 48 | To 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 | ``` | ||