Kaydet (Commit) 9a26c243 authored tarafından Caolán McNamara's avatar Caolán McNamara

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: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 98cf7063
......@@ -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:
......
......@@ -199,10 +199,12 @@ void utl::ConfigManager::doStoreConfigItems() {
static bool bIsFuzzing = false;
#if !defined(FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION)
bool utl::ConfigManager::IsFuzzing()
{
return bIsFuzzing;
}
#endif
void utl::ConfigManager::EnableFuzzing()
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment