diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-03-10 11:21:02 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-03-10 17:55:48 +0100 |
commit | f79ebdeaaacd08328142eedf048f77e11b035801 (patch) | |
tree | 0398b866f7f982c8a9d2c384beed41ef620d53d7 | |
parent | 5b218d2c85859209267844398b254b8db6fb9a7e (diff) |
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 <caolanm@redhat.com>
-rw-r--r-- | sc/source/core/data/documen4.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
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(); |