summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-11-16 10:21:06 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-11-16 17:41:04 +0100
commit454537e4a285b01807aa553ee9c70acd4806d93c (patch)
treeb16d80ca3ea9bdd8d14be684eb7a220b3211b2db
parent280a5166ad4032a618c5e29db701330f7dbdfbff (diff)
ofz#4243 Timeout
Change-Id: I00767cfd99634f0ccd22e63cf0d635a2f75bc224 Reviewed-on: https://gerrit.libreoffice.org/44806 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--sc/source/filter/excel/xistream.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sc/source/filter/excel/xistream.cxx b/sc/source/filter/excel/xistream.cxx
index ad63bb073b5a..6624599e2867 100644
--- a/sc/source/filter/excel/xistream.cxx
+++ b/sc/source/filter/excel/xistream.cxx
@@ -963,9 +963,8 @@ void XclImpStream::RestorePosition( const XclImpStreamPos& rPos )
bool XclImpStream::ReadNextRawRecHeader()
{
- std::size_t nSeekedPos = mrStrm.Seek( mnNextRecPos );
- bool bRet = (nSeekedPos == mnNextRecPos) && (mnNextRecPos + 4 <= mnStreamSize);
- if( bRet )
+ bool bRet = checkSeek(mrStrm, mnNextRecPos) && (mnNextRecPos + 4 <= mnStreamSize);
+ if (bRet)
{
mrStrm.ReadUInt16( mnRawRecId ).ReadUInt16( mnRawRecSize );
bRet = mrStrm.good();