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

ofz#4436 check if seek succeeded

Change-Id: I56d9692647b28c706b56ccacf08d494b3d830d94
Reviewed-on: https://gerrit.libreoffice.org/45295Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst ff6ab290
...@@ -6031,7 +6031,10 @@ bool SvxMSDffManager::GetShapeGroupContainerData( SvStream& rSt, ...@@ -6031,7 +6031,10 @@ bool SvxMSDffManager::GetShapeGroupContainerData( SvStream& rSt,
return false; return false;
} }
else else
rSt.SeekRel( nLength ); {
if (!checkSeek(rSt, rSt.Tell() + nLength))
return false;
}
nReadSpGrCont += nLength; nReadSpGrCont += nLength;
} }
while( nReadSpGrCont < nLenShapeGroupCont ); while( nReadSpGrCont < nLenShapeGroupCont );
......
...@@ -857,7 +857,7 @@ bool ImplSdPPTImport::Import() ...@@ -857,7 +857,7 @@ bool ImplSdPPTImport::Import()
bool bSuccess = aHd.SeekToEndOfRecord(rStCtrl); bool bSuccess = aHd.SeekToEndOfRecord(rStCtrl);
if (!bSuccess) if (!bSuccess)
{ {
SAL_WARN("filter.ms", "Count not seek to end of record"); SAL_WARN("filter.ms", "Could not seek to end of record");
break; break;
} }
} }
......
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