Kaydet (Commit) 2f672e80 authored tarafından Caolán McNamara's avatar Caolán McNamara

ofz#4243 Timeout

Change-Id: Ib1d06c966d10cef2016522a63272bf5c1670977f
Reviewed-on: https://gerrit.libreoffice.org/44808Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 454537e4
......@@ -793,10 +793,10 @@ void XclImpStream::Ignore( std::size_t nBytes )
while( mbValid && (nBytesLeft > 0) )
{
sal_uInt16 nReadSize = GetMaxRawReadSize( nBytesLeft );
mrStrm.SeekRel( nReadSize );
mbValid = checkSeek(mrStrm, mrStrm.Tell() + nReadSize);
mnRawRecLeft = mnRawRecLeft - nReadSize;
nBytesLeft -= nReadSize;
if( nBytesLeft > 0 )
if (mbValid && nBytesLeft > 0)
JumpToNextContinue();
OSL_ENSURE( mbValid, "XclImpStream::Ignore - record overread" );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment