vcl/source/gdi/impglyphitem.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
New commits: commit 8cc937d73ccb1108c7b9c869aa6ae40d630fbdac Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Tue May 3 08:53:14 2022 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Tue May 3 15:44:09 2022 +0200 ofz#47200 Abrt Change-Id: I8975120de36575e1af5297db4f40ba3a39398bb6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133748 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> 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(); }