| b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | hostap.git fuzz testing |
| 2 | ----------------------- |
| 3 | |
| 4 | These tools can be used for fuzz testing of various components used |
| 5 | within wpa_supplicant and hostapd. Each directory contains a fuzzing |
| 6 | tool that focuses on one input handler. Each tool can be compiled either |
| 7 | to work with the libFuzzer or as a separate tool that reads the input |
| 8 | from 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 | |
| 11 | Example fuzzing with libFuzzer |
| 12 | |
| 13 | cd @TOOL@ |
| 14 | make clean |
| 15 | make LIBFUZZER=y |
| 16 | ./@TOOL@ corpus |
| 17 | |
| 18 | Example fuzzing with afl-fuzz |
| 19 | |
| 20 | cd @TOOL@ |
| 21 | make clean |
| 22 | CC=afl-gcc make |
| 23 | afl-fuzz -i corpus -o findings -- $PWD/@TOOL@ @@ |