Skip to content

Commit

Permalink
Fuzzing bozohttpd: Add rule to fuzz non-ascii inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
plusun committed Aug 4, 2018
1 parent 5389445 commit 2d883e0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/fuzz/bozohttpd/bozohttpd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ SRCS+= bozohttpd.c daemon-bozo.c dir-index-bozo.c content-bozo.c tilde-luzah-boz
CFLAGS= -fsanitize=fuzzer-no-link,address,undefined -Wall -Werror -I${NETBSDSRCDIR}/libexec/httpd #-Dbozowarn=mock_bozowarn
LDFLAGS= -fsanitize=fuzzer,address,undefined -Wall -Werror -lssl -llua

fuzz: fuzz_bozohttpd
fuzz-ascii: fuzz_bozohttpd
mkdir -p slashdir && export UBSAN_OPTIONS=halt_on_error=1 && ./fuzz_bozohttpd -only_ascii=1 ./input > /dev/null
fuzz: fuzz_bozohttpd
mkdir -p slashdir && export UBSAN_OPTIONS=halt_on_error=1 && ./fuzz_bozohttpd ./input > /dev/null

.include <bsd.prog.mk>

0 comments on commit 2d883e0

Please sign in to comment.