diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-05-03 08:53:14 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-05-03 15:44:09 +0200 |
commit | 8cc937d73ccb1108c7b9c869aa6ae40d630fbdac (patch) | |
tree | 1912ecab77d1722372c75ccdc3e41351dac78efb /vcl | |
parent | d0cacf09a1105d89bf3df84b18623d790e3aeb82 (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.cxx | 5 |
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(); } |