]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tests: pass FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION to fuzzers
authorEvgeny Vereshchagin <evvers@ya.ru>
Thu, 3 Feb 2022 02:22:53 +0000 (02:22 +0000)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Thu, 3 Feb 2022 08:56:00 +0000 (08:56 +0000)
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

test/fuzz/meson.build

index c0720b14ea1564493fd05cb6f226c2535a8a8f59..ccd66c0ccf9210d994bbd01cf7d0ffa7012da249 100644 (file)
@@ -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])