summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-11-26 20:45:10 +0000
committerAndras Timar <andras.timar@collabora.com>2019-08-22 15:54:41 +0200
commitc61ed488f9ed8375e02d8fd41fbe3a0901cd311a (patch)
treeb2e95c5ec7f1f655b618a3b0b9b8d75c289a5f03
parent74d737aecd0821a255f5ba98be3239a6ff1df984 (diff)
ofz#4436 check if seek succeeded
Change-Id: I56d9692647b28c706b56ccacf08d494b3d830d94 Reviewed-on: https://gerrit.libreoffice.org/45296 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com> (cherry picked from commit 765ff606426251f90aff5d1fc89f01ed7594ed59)
-rw-r--r--filter/source/msfilter/msdffimp.cxx5
-rw-r--r--sd/source/filter/ppt/pptin.cxx2
2 files changed, 5 insertions, 2 deletions
diff --git a/filter/source/msfilter/msdffimp.cxx b/filter/source/msfilter/msdffimp.cxx
index 1e4023c4d021..a3d1b2909fb6 100644
--- a/filter/source/msfilter/msdffimp.cxx
+++ b/filter/source/msfilter/msdffimp.cxx
@@ -6046,7 +6046,10 @@ bool SvxMSDffManager::GetShapeGroupContainerData( SvStream& rSt,
return false;
}
else
- rSt.SeekRel( nLength );
+ {
+ if (!checkSeek(rSt, rSt.Tell() + nLength))
+ return false;
+ }
nReadSpGrCont += nLength;
}
while( nReadSpGrCont < nLenShapeGroupCont );
diff --git a/sd/source/filter/ppt/pptin.cxx b/sd/source/filter/ppt/pptin.cxx
index f54b6afe0d2e..b29156594855 100644
--- a/sd/source/filter/ppt/pptin.cxx
+++ b/sd/source/filter/ppt/pptin.cxx
@@ -854,7 +854,7 @@ bool ImplSdPPTImport::Import()
bool bSuccess = aHd.SeekToEndOfRecord(rStCtrl);
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;
}
}