3ea72c286e
It replaces current fuzz setup with 5 new fuzzers integrating them with top-level Makefile. It now supports multiple fuzzing engines and Google's oss-fuzz. By default, the fuzzers are linked against an standalone runner to easily reproduce bugs.
21 lines
555 B
Makefile
21 lines
555 B
Makefile
FUZZPROGS = \
|
|
jpegsave_buffer_fuzzer \
|
|
pngsave_buffer_fuzzer \
|
|
webpsave_buffer_fuzzer \
|
|
sharpen_fuzzer \
|
|
thumbnail_fuzzer
|
|
|
|
AM_DEFAULT_SOURCE_EXT = .cc
|
|
|
|
FUZZLIBS = libstandaloneengine.a
|
|
|
|
# Include debug symbols by default as recommended by libfuzzer
|
|
AM_CXXFLAGS = -g -I${top_srcdir}/libvips/include @VIPS_CFLAGS@ @VIPS_INCLUDES@
|
|
AM_LDFLAGS = @LDFLAGS@
|
|
LDADD = ${top_builddir}/libvips/libvips.la @VIPS_LIBS@ @LIB_FUZZING_ENGINE@
|
|
|
|
libstandaloneengine_a_SOURCES = StandaloneFuzzTargetMain.c
|
|
|
|
noinst_PROGRAMS = $(FUZZPROGS)
|
|
noinst_LIBRARIES = $(FUZZLIBS)
|