diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-08-13 16:22:30 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-08-13 22:15:42 +0200 |
commit | 9a26c243a8c81724b557355471818f7fe238ed64 (patch) | |
tree | 0615f0d3d5cd7bfc899c7d0b8e806d853580da87 /include | |
parent | 98cf7063dfda2e4958145c5b0f25d91200270864 (diff) |
short-circuit IsFuzzing when FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION defined
Change-Id: Ib82daad19185de3d271adee3cdb6d39a35e9c082
Reviewed-on: https://gerrit.libreoffice.org/58941
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/unotools/configmgr.hxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/unotools/configmgr.hxx b/include/unotools/configmgr.hxx index fd2dbb2455c2..5205c9d1664e 100644 --- a/include/unotools/configmgr.hxx +++ b/include/unotools/configmgr.hxx @@ -74,7 +74,11 @@ public: // Avoid using the config layer and rely on defaults which is only useful // for special test tool targets (typically fuzzing) where start-up speed // is of the essence +#if defined(FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION) + static constexpr bool IsFuzzing() { return true; } +#else static bool IsFuzzing(); +#endif static void EnableFuzzing(); private: |