blob: 9ba0f176f2cd79d2a2dfda2c9b4692806cb02c14 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001hostap.git fuzz testing
2-----------------------
3
4These tools can be used for fuzz testing of various components used
5within wpa_supplicant and hostapd. Each directory contains a fuzzing
6tool that focuses on one input handler. Each tool can be compiled either
7to work with the libFuzzer or as a separate tool that reads the input
8from a file specified on the command line, e.g., for American fuzzy lop
9(afl-fuzz). Example test corpus is included in */corpus directory.
10
11Example fuzzing with libFuzzer
12
13cd @TOOL@
14make clean
15make LIBFUZZER=y
16./@TOOL@ corpus
17
18Example fuzzing with afl-fuzz
19
20cd @TOOL@
21make clean
22CC=afl-gcc make
23afl-fuzz -i corpus -o findings -- $PWD/@TOOL@ @@