Add a harness for fuzzing make_safe_uri()

This commit is contained in:
Emil Mikulic
2015-01-01 18:14:28 +11:00
parent e50accedb8
commit f24c9d0d59
18 changed files with 40 additions and 64 deletions

7
devel/fuzz.sh Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/bash -e
AFL_PATH=~/afl/afl-1.06b
export AFL_PATH
TMP=/dev/shm/darkhttpd
AFL_HARDEN=1 $AFL_PATH/afl-gcc -O3 fuzz_make_safe_uri.c -o fuzz_make_safe_uri
mkdir $TMP
$AFL_PATH/afl-fuzz -i fuzz_testcases -o $TMP ./fuzz_make_safe_uri