diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-09-16 08:48:22 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-09-16 12:22:56 +0200 |
commit | e58e828d4877f9068e4a69c52ac9c7fe6e65d032 (patch) | |
tree | 80346fa23a323a1013559fa4afb3f5f7a998dc18 /sw/source | |
parent | 16d645e5b8f11b4ddb49a2b58bde388b28960abc (diff) |
ofz#38757 avoid config during fuzzing
Change-Id: Ie56e70faf40ec63ba5b17a8a9ea5f2947bbe53e1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122174
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/uibase/app/docshini.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sw/source/uibase/app/docshini.cxx b/sw/source/uibase/app/docshini.cxx index 6cc2448d5a99..aabd3e8e4eb6 100644 --- a/sw/source/uibase/app/docshini.cxx +++ b/sw/source/uibase/app/docshini.cxx @@ -107,7 +107,8 @@ bool SwDocShell::InitNew( const uno::Reference < embed::XStorage >& xStor ) SwTransferable::InitOle( this ); // set forbidden characters if necessary - if (!utl::ConfigManager::IsFuzzing()) + const bool bFuzzing = utl::ConfigManager::IsFuzzing(); + if (!bFuzzing) { SvxAsianConfig aAsian; const Sequence<lang::Locale> aLocales = aAsian.GetStartEndCharLocales(); @@ -236,7 +237,7 @@ bool SwDocShell::InitNew( const uno::Reference < embed::XStorage >& xStor ) sal_uInt16 nFontWhich = RES_CHRATR_FONT; sal_uInt16 nFontHeightWhich = RES_CHRATR_FONTSIZE; LanguageType eLanguage = m_xDoc->GetDefault( RES_CHRATR_LANGUAGE ).GetLanguage(); - bool bDisableBuiltinStyles = officecfg::Office::Common::Load::DisableBuiltinStyles::get(); + bool bDisableBuiltinStyles = !bFuzzing && officecfg::Office::Common::Load::DisableBuiltinStyles::get(); sal_uInt8 nLimit = bDisableBuiltinStyles ? 0 : 24; for(sal_uInt8 nIdx = 0; nIdx < nLimit; nIdx += 2) { |