radare2/test/fuzz/meson.build
2023-03-06 14:58:20 +01:00

35 lines
696 B
Meson

if get_option('enable_libfuzzer')
targets = [
'anal',
'bin',
'bin2',
'fs',
'dwarf',
'bin_demangle',
'ia',
'cmd',
'pdb_parse',
'pkcs7_parse',
'protobuf_decode',
'punycode_decode',
'run_parseline',
'x509_parse',
]
foreach target : targets
exe = executable('fuzz_@0@'.format(target), 'fuzz_@0@.c'.format(target),
include_directories: [platform_inc],
dependencies: [
r_bin_dep,
r_core_dep,
r_util_dep,
r_socket_dep,
],
install: false,
implicit_include_directories: false,
c_args : '-fsanitize=fuzzer',
link_args : '-fsanitize=fuzzer'
)
endforeach
endif