mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
24468bead6
This adds a new subdirectory called `fuzzing/` which will contain applications for fuzzing various RIOT network modules in the future. This subdirectory is heavily inspired by the `examples/` subdirectory. The fuzzing applications use AFL as a fuzzer. Each application contains Makefiles, source code, and an input corpus used by AFL to generate input for fuzzing.
22 lines
529 B
Makefile
22 lines
529 B
Makefile
RIOTBASE ?= $(CURDIR)/../..
|
|
|
|
# Instrumend code with AFL by default
|
|
TOOLCHAIN ?= afl
|
|
|
|
# Automatically set application to a sensible default
|
|
APPLICATION ?= fuzzing_$(notdir $(patsubst %/,%,$(CURDIR)))
|
|
|
|
# Fuzzing is only supported on native
|
|
BOARD ?= native
|
|
FEATURES_REQUIRED += arch_native
|
|
|
|
CFLAGS += -ggdb # Make ASAN output more useful error messages
|
|
CFLAGS += -D_FORTIFY_SOURCE=2 # Compiler hardening
|
|
|
|
# Various utilitiy modules
|
|
USEMODULE += fuzzing
|
|
USEMODULE += ssp
|
|
|
|
# Enable DEVELHELP by default
|
|
DEVELHELP ?= 1
|