summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-07-01 10:24:07 +0100
committerCaolán McNamara <caolanm@redhat.com>2021-07-01 13:06:21 +0200
commit26e2bb5c09dc8a95ffd69c666de352a8bfd965cb (patch)
treef63b3a45023b9c3028dbbad82c6ec650c5e810a1
parent7a1c8144ac91da056bfdc74b2f757d10b44e6f4e (diff)
ofz#30762 Timeout
Change-Id: Iffbf89de479d1038f21a45575957ea7212d6939c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118214 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--sc/source/filter/excel/xipage.cxx15
1 files changed, 11 insertions, 4 deletions
diff --git a/sc/source/filter/excel/xipage.cxx b/sc/source/filter/excel/xipage.cxx
index 41db8abcfbd6..c06308ba78c6 100644
--- a/sc/source/filter/excel/xipage.cxx
+++ b/sc/source/filter/excel/xipage.cxx
@@ -125,10 +125,17 @@ void XclImpPageSettings::ReadHeaderFooter( XclImpStream& rStrm )
default: OSL_FAIL( "XclImpPageSettings::ReadHeaderFooter - unknown record" );
}
- if (maData.maHeader.getLength() > 10 && utl::ConfigManager::IsFuzzing())
- maData.maHeader = maData.maHeader.copy(0, 10);
- if (maData.maHeaderEven.getLength() > 10 && utl::ConfigManager::IsFuzzing())
- maData.maHeaderEven = maData.maHeaderEven.copy(0, 10);
+ if (utl::ConfigManager::IsFuzzing())
+ {
+ if (maData.maHeader.getLength() > 10)
+ maData.maHeader = maData.maHeader.copy(0, 10);
+ if (maData.maFooter.getLength() > 10)
+ maData.maFooter = maData.maFooter.copy(0, 10);
+ if (maData.maHeaderEven.getLength() > 10)
+ maData.maHeaderEven = maData.maHeaderEven.copy(0, 10);
+ if (maData.maFooterEven.getLength() > 10)
+ maData.maFooterEven = maData.maFooterEven.copy(0, 10);
+ }
}
void XclImpPageSettings::ReadPageBreaks( XclImpStream& rStrm )