[Libreoffice-commits] core.git: sc/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Mon Jul 5 12:13:30 UTC 2021


 sc/source/core/data/documentimport.cxx |    8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

New commits:
commit 7d37aba1185b1c2f8effe45d55e171010c0a6f31
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Mon Jul 5 09:52:24 2021 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Mon Jul 5 14:12:55 2021 +0200

    ofz#35817 Timeout
    
    Change-Id: I99b3ce9189e3b76b60916482aa64cc7454ba9495
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118404
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>

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;


More information about the Libreoffice-commits mailing list