From 8376d2bf6ee6817d6ae9965c50627af89816cbeb Mon Sep 17 00:00:00 2001 From: Vincent Rischmann Date: Sun, 21 Aug 2022 14:00:17 +0200 Subject: fuzz: explain how to debug --- fuzz/README.md | 9 +++++++++ 1 file changed, 9 insertions(+) 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: ``` $ AFL_SKIP_CPUFREQ=1 afl-fuzz -i - -o fuzz/outputs -- ./zig-out/bin/fuzz ``` + +# Debugging a crash + +If `afl-fuzz` finds a crash it will be added to `fuzz/outputs/default/crashes.XYZ`. + +To debug the crash you can run the fuzz binary and giving it the content of the crash via stdin, for example: +``` +$ ./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' +``` -- cgit v1.2.3