libvips/fuzz/meson.build
Kleis Auke Wolthuizen 3da7caee6c
LSan improvements and fixes (#2672)
* LSan: remove GLib suppression

* LSan: disable the fast unwinder to get full stacktraces

* Move ASan/UBSan fuzzer options to CI configuration

* LSan: remove EOLed python2.7 suppression

* LSan: remove libstdc++ suppression

* LSan: add libx265 to suppression file

* Try to reproduce small memleak

* Try a possible patch

* Skip test if `im_benchmark` is not available

* CI: upgrade Clang version to 13

* CI: correct job names

* Meson: increase the timeout for tests

* README.md: correct Meson invocation
2022-02-19 15:13:42 +00:00

44 lines
939 B
Meson

standaloneengine = static_library('standaloneengine',
'StandaloneFuzzTargetMain.c',
dependencies: libvips_deps,
)
fuzz_progs = [
'jpegsave_file_fuzzer',
'jpegsave_buffer_fuzzer',
'pngsave_buffer_fuzzer',
'webpsave_buffer_fuzzer',
'gifsave_buffer_fuzzer',
'sharpen_fuzzer',
'thumbnail_fuzzer',
'smartcrop_fuzzer',
'mosaic_fuzzer'
]
fuzz_execs = []
foreach fuzz_prog : fuzz_progs
fuzz_execs += executable(fuzz_prog,
fuzz_prog + '.cc',
dependencies: libvips_dep,
link_with: standaloneengine
)
endforeach
test_fuzz = configure_file(
input: 'test_fuzz.sh',
output: 'test_fuzz.sh',
copy: true,
)
test(
'fuzz',
test_fuzz,
workdir: meson.current_build_dir(),
depends: [
fuzz_execs,
],
# Increase the timeout as running the tests with sanitizers
# enabled could be slower than the default 30 seconds.
timeout: 60,
)