summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-02-06 21:25:41 +0000
committerCaolán McNamara <caolanm@redhat.com>2021-02-08 10:05:10 +0100
commitcbbeae83356942d2e9c71b2d51be322541458722 (patch)
tree6a47fbd034eb76afea6162fafc5caaddbec03601 /sc
parent5dd669ff658c37171dedd5cfb012065741b3f242 (diff)
ofz#27846 restrict number-rows-repeated when fuzzing
to avoid uninteresting timeouts Change-Id: I20876b10589558a4431433ffd04668b17aea16cb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110518 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/filter/xml/xmlrowi.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/source/filter/xml/xmlrowi.cxx b/sc/source/filter/xml/xmlrowi.cxx
index 7b37b066e5d5..ed1719039e95 100644
--- a/sc/source/filter/xml/xmlrowi.cxx
+++ b/sc/source/filter/xml/xmlrowi.cxx
@@ -28,6 +28,7 @@
#include <documentimport.hxx>
#include <unonames.hxx>
+#include <unotools/configmgr.hxx>
#include <xmloff/xmlnamespace.hxx>
#include <xmloff/families.hxx>
#include <xmloff/xmltoken.hxx>
@@ -71,6 +72,8 @@ ScXMLTableRowContext::ScXMLTableRowContext( ScXMLImport& rImport,
{
nRepeatedRows = std::max( it.toInt32(), sal_Int32(1) );
nRepeatedRows = std::min( nRepeatedRows, rImport.GetDocument()->GetSheetLimits().GetMaxRowCount() );
+ if (utl::ConfigManager::IsFuzzing())
+ nRepeatedRows = std::min(nRepeatedRows, sal_Int32(1024));
}
break;
case XML_ELEMENT( TABLE, XML_DEFAULT_CELL_STYLE_NAME ):