sc/source/core/data/documen4.cxx | 8 ++++++++ 1 file changed, 8 insertions(+)
New commits: commit f79ebdeaaacd08328142eedf048f77e11b035801 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Thu Mar 10 11:21:02 2022 +0000 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Thu Mar 10 17:55:48 2022 +0100 ofz#44982 limit matrices for fuzzing, but allow importing a little Change-Id: I708811e7e4900fc5d79445e91dc895def552d77f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131314 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/sc/source/core/data/documen4.cxx b/sc/source/core/data/documen4.cxx index b7eecde0edb1..9ec96b77b243 100644 --- a/sc/source/core/data/documen4.cxx +++ b/sc/source/core/data/documen4.cxx @@ -271,6 +271,14 @@ void ScDocument::InsertMatrixFormula(SCCOL nCol1, SCROW nRow1, SAL_WARN("sc", "ScDocument::InsertMatrixFormula: No table marked"); return; } + if (utl::ConfigManager::IsFuzzing()) + { + // just too slow + if (nCol2 - nCol1 > 1024) + return; + if (nRow2 - nRow1 > 1024) + return; + } assert( ValidColRow( nCol1, nRow1) && ValidColRow( nCol2, nRow2)); SCTAB nTab1 = *rMark.begin();