diff options
author | Evgeny Vereshchagin <evvers@ya.ru> | 2022-02-03 02:22:53 +0000 |
---|---|---|
committer | Frantisek Sumsal <frantisek@sumsal.cz> | 2022-02-03 08:56:00 +0000 |
commit | be496d6a9b88d808ac009da311251fa25a62c39e (patch) | |
tree | f8c07c7c40a21aa8c6b1c96c8b9a23cabb9b4912 /test | |
parent | 362c62296aa76815b40cac63bd370401a305c793 (diff) | |
download | systemd-be496d6a9b88d808ac009da311251fa25a62c39e.tar.gz |
tests: pass FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION to fuzzers
to let them use reproducible identifiers, which should make it possible
to really use files copied from OSS-Fuzz to reproduce issues on
GHActions and locally. Prompted by https://github.com/systemd/systemd/pull/22365
Diffstat (limited to 'test')
-rw-r--r-- | test/fuzz/meson.build | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/fuzz/meson.build b/test/fuzz/meson.build index c0720b14ea..ccd66c0ccf 100644 --- a/test/fuzz/meson.build +++ b/test/fuzz/meson.build @@ -7,9 +7,10 @@ sanitize_address_undefined = custom_target( project_source_root, '@OUTPUT@', 'fuzzers', - '-Dfuzz-tests=true -Db_lundef=false -Db_sanitize=address,undefined --optimization=@0@ @1@'.format( + '-Dfuzz-tests=true -Db_lundef=false -Db_sanitize=address,undefined --optimization=@0@ @1@ -Dc_args=@2@ -Dcpp_args=@2@'.format( get_option('optimization'), - get_option('werror') ? '--werror' : '' + get_option('werror') ? '--werror' : '', + '-DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION' ), ' '.join(cc.cmd_array()), cxx_cmd]) |