summaryrefslogtreecommitdiff
path: root/filter/source/msfilter
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-11-26 20:45:10 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-11-27 10:10:31 +0100
commitbb149908f142a59faa3ed61aaa1277b608cc7e40 (patch)
treedc8f1a9d2b08773ab702a56bddc24358608f941b /filter/source/msfilter
parentff6ab290b186904de2b73900fef3ae491db61350 (diff)
ofz#4436 check if seek succeeded
Change-Id: I56d9692647b28c706b56ccacf08d494b3d830d94 Reviewed-on: https://gerrit.libreoffice.org/45295 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'filter/source/msfilter')
-rw-r--r--filter/source/msfilter/msdffimp.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/filter/source/msfilter/msdffimp.cxx b/filter/source/msfilter/msdffimp.cxx
index eac8803da7f4..8ea4619c89f0 100644
--- a/filter/source/msfilter/msdffimp.cxx
+++ b/filter/source/msfilter/msdffimp.cxx
@@ -6031,7 +6031,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 );