hostap/tests/fuzzing
Jouni Malinen d438b4a3ce tests: Fix CFLAGS passing for new fuzzing tools
src/*/Makefile needs to allow additional CFLAGS values to be provided
from the calling Makefiles so that the clang command line arguments to
enable sanitizers consistently. In addition, it can be useful to be able
to provide CC, CFLAGS, and LDFLAGS from external setup while still
requesing LIBFUZZER=y build. Allow that by not overriding these
variables if they are already set.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
2019-06-11 06:34:19 +03:00
..
ap-mgmt tests: Fix ap-mgmt 'make clean' 2019-06-03 13:51:41 +03:00
asn1 tests: New style fuzzing tool for ASN.1 parser 2019-06-02 13:00:39 +03:00
eap-aka-peer tests: New style fuzzing tool for EAP-AKA peer processing 2019-06-02 17:02:57 +03:00
eap-sim-peer tests: New style fuzzing tool for EAP-SIM peer processing 2019-06-02 16:42:41 +03:00
eapol-key-auth tests: Fix eapol-key-auth memory use for the callback pointer struct 2019-06-07 23:54:20 +03:00
eapol-key-supp tests: New style fuzzing tools for EAPOL-Key frame processing 2019-06-02 13:00:39 +03:00
eapol-supp tests: New style fuzzing tool for EAPOL frame processing (supplicant) 2019-06-02 13:00:39 +03:00
json tests: New style fuzzing tool for JSON parser 2019-06-02 13:00:39 +03:00
p2p tests: New style fuzzing tool for P2P frame processing 2019-06-02 13:00:39 +03:00
tls-client tests: New style fuzzing tools for TLS client/server 2019-06-02 13:11:56 +03:00
tls-server tests: New style fuzzing tools for TLS client/server 2019-06-02 13:11:56 +03:00
wnm tests: New style fuzzing tool for wpa_supplicant WNM handling 2019-06-02 13:00:36 +03:00
x509 tests: New style fuzzing tool for X.509 certificate parsing 2019-06-02 13:17:31 +03:00
build-test.sh tests: Build test for new fuzzer tools 2019-06-02 13:00:39 +03:00
fuzzer-common.c tests: New style fuzzing tool for wpa_supplicant WNM handling 2019-06-02 13:00:36 +03:00
fuzzer-common.h tests: New style fuzzing tool for wpa_supplicant WNM handling 2019-06-02 13:00:36 +03:00
README tests: New style fuzzing tool for wpa_supplicant WNM handling 2019-06-02 13:00:36 +03:00
rules.include tests: Fix CFLAGS passing for new fuzzing tools 2019-06-11 06:34:19 +03:00

hostap.git fuzz testing
-----------------------

These tools can be used for fuzz testing of various components used
within wpa_supplicant and hostapd. Each directory contains a fuzzing
tool that focuses on one input handler. Each tool can be compiled either
to work with the libFuzzer or as a separate tool that reads the input
from a file specified on the command line, e.g., for American fuzzy lop
(afl-fuzz). Example test corpus is included in */corpus directory.

Example fuzzing with libFuzzer

cd @TOOL@
make clean
make LIBFUZZER=y
./@TOOL@ corpus

Example fuzzing with afl-fuzz

cd @TOOL@
make clean
CC=afl-gcc make
afl-fuzz -i corpus -o findings -- $PWD/@TOOL@ @@