diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-07-05 09:52:24 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-07-05 14:12:55 +0200 |
commit | 7d37aba1185b1c2f8effe45d55e171010c0a6f31 (patch) | |
tree | 2a4523666f5a7eb7e80381a99e20804649e1d522 /sc/source/core | |
parent | db1c8df98a23d687d6806f371bdd416dd1b84589 (diff) |
ofz#35817 Timeout
Change-Id: I99b3ce9189e3b76b60916482aa64cc7454ba9495
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118404
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc/source/core')
-rw-r--r-- | sc/source/core/data/documentimport.cxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sc/source/core/data/documentimport.cxx b/sc/source/core/data/documentimport.cxx index 2dbc61c03938..ab4cb64fdcb2 100644 --- a/sc/source/core/data/documentimport.cxx +++ b/sc/source/core/data/documentimport.cxx @@ -53,13 +53,16 @@ struct ScDocumentImportImpl sc::StartListeningContext maListenCxt; std::vector<sc::TableColumnBlockPositionSet> maBlockPosSet; SvtScriptType mnDefaultScriptNumeric; + bool mbFuzzing; std::vector<TabAttr> maTabAttrs; std::unordered_map<sal_uInt32, bool> maIsLatinScriptMap; explicit ScDocumentImportImpl(ScDocument& rDoc) : mrDoc(rDoc), maListenCxt(rDoc), - mnDefaultScriptNumeric(SvtScriptType::UNKNOWN) {} + mnDefaultScriptNumeric(SvtScriptType::UNKNOWN), + mbFuzzing(utl::ConfigManager::IsFuzzing()) + {} bool isValid( size_t nTab, size_t nCol ) { @@ -708,6 +711,9 @@ public: if (node.type != sc::element_type_formula) return; + if (mrDocImpl.mbFuzzing) // skip listening when fuzzing + return; + // Have all formula cells start listening to the document. ScFormulaCell** pp = &sc::formula_block::at(*node.data, 0); ScFormulaCell** ppEnd = pp + node.size; |