summaryrefslogtreecommitdiff
path: root/sd/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-08-27 13:58:48 +0100
committerAndras Timar <andras.timar@collabora.com>2015-08-31 15:12:01 +0200
commitc004f80a7691ea13d550f4e6b39a2ced4d4516c4 (patch)
tree4841f360cb0478f961ab54aa14643cc96f424163 /sd/source
parent99619cedab937b55e0be93aabae67bd8d6dc3de0 (diff)
check seek for success
Change-Id: I02420ffb3af009d08ce54a0932e2c7a287703a72 (cherry picked from commit 1830b4f2e324090962a993315ce76752d24d4088) Reviewed-on: https://gerrit.libreoffice.org/18091 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'sd/source')
-rw-r--r--sd/source/filter/ppt/propread.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/sd/source/filter/ppt/propread.cxx b/sd/source/filter/ppt/propread.cxx
index 75a4bcc0648b..036f1f9f54ee 100644
--- a/sd/source/filter/ppt/propread.cxx
+++ b/sd/source/filter/ppt/propread.cxx
@@ -427,7 +427,11 @@ void Section::Read( SotStorageStream *pStrm )
if ( nPropSize )
{
if ( ( nVectorCount - i ) > 1 )
- pStrm->Seek( nPropOfs + nSecOfs + nPropSize );
+ {
+ nOffset = nPropOfs + nSecOfs + nPropSize;
+ if (nOffset != pStrm->Seek(nOffset))
+ break;
+ }
}
else
break;