summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-05-03 08:53:14 +0100
committerCaolán McNamara <caolanm@redhat.com>2022-05-03 15:44:09 +0200
commit8cc937d73ccb1108c7b9c869aa6ae40d630fbdac (patch)
tree1912ecab77d1722372c75ccdc3e41351dac78efb /vcl
parentd0cacf09a1105d89bf3df84b18623d790e3aeb82 (diff)
ofz#47200 Abrt
Change-Id: I8975120de36575e1af5297db4f40ba3a39398bb6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133748 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/gdi/impglyphitem.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/vcl/source/gdi/impglyphitem.cxx b/vcl/source/gdi/impglyphitem.cxx
index 81553622a132..23a2b2a96fc9 100644
--- a/vcl/source/gdi/impglyphitem.cxx
+++ b/vcl/source/gdi/impglyphitem.cxx
@@ -22,6 +22,7 @@
#include <vcl/vcllayout.hxx>
#include <vcl/lazydelete.hxx>
#include <tools/stream.hxx>
+#include <unotools/configmgr.hxx>
#include <TextLayoutCache.hxx>
#include <config_fuzzers.h>
#include <officecfg/Office/Common.hxx>
@@ -210,7 +211,9 @@ bool SalLayoutGlyphsImpl::IsValid() const
SalLayoutGlyphsCache* SalLayoutGlyphsCache::self()
{
static vcl::DeleteOnDeinit<SalLayoutGlyphsCache> cache(
- officecfg::Office::Common::Cache::Font::GlyphsCacheSize::get());
+ !utl::ConfigManager::IsFuzzing()
+ ? officecfg::Office::Common::Cache::Font::GlyphsCacheSize::get()
+ : 20000);
return cache.get();
}