Skip to content
Browse files
fuzzing: Document how to use honggfuzz to fuzz libnbd.
  • Loading branch information
rwmjones committed May 12, 2020
1 parent b3fbcc7 commit 329c5235f81ab0d1849946bab5e5c4119b35e140
Showing 1 changed file with 22 additions and 0 deletions.
@@ -1,5 +1,6 @@
To report security bugs, see ‘SECURITY’ in the top source directory.

Fuzzing libnbd using the American Fuzzy Lop (afl) fuzzer

@@ -58,6 +59,27 @@ command below. You can run this even while afl-fuzz is running.
This will create an HTML test coverage report in

Fuzzing libnbd using honggfuzz

Recompile libnbd with honggfuzz instrumentation:

./configure \
CC=/path/to/hfuzz-clang CXX=/path/to/hfuzz-clang++ \
--disable-shared \
--disable-golang --disable-ocaml --disable-python
make clean

Run honggfuzz using test cases:

honggfuzz -i fuzzing/testcase_dir -z -- \
./fuzzing/libnbd-fuzz-wrapper ___FILE___

(Note 3 underscore characters on each side.)

Fuzzing libnbd using Clang + libFuzzer

0 comments on commit 329c523

Please sign in to comment.