summaryrefslogtreecommitdiff
path: root/comphelper
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2023-12-23 15:58:51 +0000
committerCaolán McNamara <caolan.mcnamara@collabora.com>2023-12-23 19:48:34 +0100
commitf82b8bf05a76ad9cc3fe950f4180c90bce56d79b (patch)
treeb4677e8531abe422691986335dd28b0ef547edfe /comphelper
parent3e582d9e3fbed8cb94284ac1ab6105cf74eccfe0 (diff)
ofz#65295 Abrt
Change-Id: I074a43191c4af304a2702012d0b810aad801d0d2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161249 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'comphelper')
-rw-r--r--comphelper/source/misc/configuration.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/comphelper/source/misc/configuration.cxx b/comphelper/source/misc/configuration.cxx
index 6e500f619232..1ef359c7a9b6 100644
--- a/comphelper/source/misc/configuration.cxx
+++ b/comphelper/source/misc/configuration.cxx
@@ -183,6 +183,9 @@ css::uno::Any comphelper::detail::ConfigurationWrapper::getPropertyValue(OUStrin
std::scoped_lock aGuard(maMutex);
if (mbDisposed)
throw css::lang::DisposedException();
+#if defined(FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION)
+ return css::uno::Any();
+#else
// Cache the configuration access, since some of the keys are used in hot code.
auto it = maPropertyCache.find(path);
if( it != maPropertyCache.end())
@@ -198,6 +201,7 @@ css::uno::Any comphelper::detail::ConfigurationWrapper::getPropertyValue(OUStrin
css::uno::Any property = access->getByName(childName);
maPropertyCache.emplace(path, property);
return property;
+#endif
}
void comphelper::detail::ConfigurationWrapper::setPropertyValue(