Simple fuzzer

This commit is contained in:
Toby Jaffey 2025-12-14 12:34:53 +00:00
parent 0736381925
commit 7313047fd1
2 changed files with 32 additions and 0 deletions

9
hosts/fuzz/Makefile Normal file
View file

@ -0,0 +1,9 @@
TOPDIR=../..
all:
afl-clang-fast -g3 -fsanitize=address,undefined -Wall -DUVM32_MEMORY_SIZE=8388608 -I${TOPDIR}/uvm32 -I${TOPDIR}/common -o host-fuzz ${TOPDIR}/uvm32/uvm32.c fuzz.c
afl-fuzz -i${TOPDIR}/precompiled -oo ./host-fuzz
clean:
rm -rf host-fuzz o host-fuzz.dSYM