From d1d0e9fdb078cbc27f406607dcee775645270e2b Mon Sep 17 00:00:00 2001 From: Randy Date: Mon, 11 May 2020 08:59:07 +0200 Subject: [PATCH] add fuzz target to Makefile --- tests/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/Makefile b/tests/Makefile index b1e99ae..62aeca0 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -2,9 +2,11 @@ INCLUDES = -I.. CFLAGS = -Wno-pointer-to-int-cast -Wno-int-to-pointer-cast -DSTB_DIVIDE_TEST CPPFLAGS = -Wno-write-strings -DSTB_DIVIDE_TEST +# Uncomment this for reproducing OSS-Fuzz bugs #CFLAGS += -O -fsanitize=address all: $(CC) $(INCLUDES) $(CFLAGS) ../stb_vorbis.c test_c_compilation.c test_c_lexer.c test_dxt.c test_easyfont.c test_image.c test_image_write.c test_perlin.c test_sprintf.c test_truetype.c test_voxel.c -lm $(CC) $(INCLUDES) $(CPPFLAGS) -std=c++0x test_cpp_compilation.cpp -lm -lstdc++ $(CC) $(INCLUDES) $(CFLAGS) -DIWT_TEST image_write_test.c -lm -o image_write_test + $(CC) $(INCLUDES) $(CFLAGS) fuzz_main.c stbi_read_fuzzer.c -lm -o image_fuzzer