summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-08-12 23:07:16 -0400
committerJune McEnroe <june@causal.agency>2019-08-12 23:07:16 -0400
commitbd7e5d10bab7a00e3b48d42e6a71abeea7fec621 (patch)
tree6e5e70a54efae41203361ec6a79ab1759e14a2b1 /Makefile
parentRemove main in term.c (diff)
downloadstream-bd7e5d10bab7a00e3b48d42e6a71abeea7fec621.tar.gz
stream-bd7e5d10bab7a00e3b48d42e6a71abeea7fec621.zip
Set up afl-fuzz
Diffstat (limited to '')
-rw-r--r--Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index db34005..0cae642 100644
--- a/Makefile
+++ b/Makefile
@@ -43,3 +43,13 @@ chroot.tar: ${BINS}
 
 clean:
 	rm -fr ${BINS} tags chroot.tar root
+
+fuzz: term afl/input/clear
+	afl-fuzz -i afl/input -o afl/output -- ./term
+
+term: term.c term.h
+	${CC} ${CFLAGS} -DTERM_MAIN ${LDFLAGS} term.c -o term
+
+afl/input/clear:
+	mkdir -p afl/input
+	clear > afl/input/clear