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

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Mon Feb 8 09:05:56 UTC 2021


 sc/source/filter/xml/xmlrowi.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit cbbeae83356942d2e9c71b2d51be322541458722
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Sat Feb 6 21:25:41 2021 +0000
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Mon Feb 8 10:05:10 2021 +0100

    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 at redhat.com>

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 ):


More information about the Libreoffice-commits mailing list