Merge pull request #15865 from evverx/ubsan-to-the-rescue

build-system: build the fuzz targets with both ASan and UBSan
This commit is contained in:
Evgeny Vereshchagin
2020-05-21 03:17:20 +03:00
committed by GitHub
3 changed files with 9 additions and 8 deletions
+5 -5
View File
@@ -1,17 +1,17 @@
# SPDX-License-Identifier: LGPL-2.1+
sanitize_address = custom_target(
'sanitize-address-fuzzers',
output : 'sanitize-address-fuzzers',
sanitize_address_undefined = custom_target(
'sanitize-address-undefined-fuzzers',
output : 'sanitize-address-undefined-fuzzers',
command : [meson_build_sh,
project_source_root,
'@OUTPUT@',
'fuzzers',
'-Db_lundef=false -Db_sanitize=address',
'-Db_lundef=false -Db_sanitize=address,undefined',
' '.join(cc.cmd_array()),
cxx_cmd])
sanitizers = [['address', sanitize_address]]
sanitizers = [['address,undefined', sanitize_address_undefined]]
if git.found()
out = run_command(