summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-09-26 13:13:09 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-09-26 21:24:49 +0200
commit2cd576c3bbcbabda4b6fa1758ae35cdcfb4bb1c8 (patch)
tree336c2720a899012382d7c392db5c2fe8af819a78 /filter
parent04f269f4e9fa38c52a85406e6bf6deadce3ffbfa (diff)
ofz timeouts in pptfuzzer
Change-Id: Id682c1078359db2e2883b71977efedc79235017c Reviewed-on: https://gerrit.libreoffice.org/42805 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'filter')
-rw-r--r--filter/source/msfilter/svdfppt.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/filter/source/msfilter/svdfppt.cxx b/filter/source/msfilter/svdfppt.cxx
index 2bbadab82d74..eef6e62f9ed1 100644
--- a/filter/source/msfilter/svdfppt.cxx
+++ b/filter/source/msfilter/svdfppt.cxx
@@ -1368,7 +1368,7 @@ SdrPowerPointImport::SdrPowerPointImport( PowerPointImportParam& rParam, const O
while( nCurrentEditAtomStrmPos )
{
sal_uInt32 nPersistIncPos = aCurrentEditAtom.nOffsetPersistDirectory;
- if (nPersistIncPos && rStCtrl.Seek(nPersistIncPos) == nPersistIncPos)
+ if (nPersistIncPos && checkSeek(rStCtrl, nPersistIncPos))
{
DffRecordHeader aPersistHd;
ReadDffRecordHeader( rStCtrl, aPersistHd );
@@ -1407,9 +1407,8 @@ SdrPowerPointImport::SdrPowerPointImport( PowerPointImportParam& rParam, const O
}
}
nCurrentEditAtomStrmPos = aCurrentEditAtom.nOffsetLastEdit < nCurrentEditAtomStrmPos ? aCurrentEditAtom.nOffsetLastEdit : 0;
- if ( nCurrentEditAtomStrmPos )
+ if (nCurrentEditAtomStrmPos && checkSeek(rStCtrl, nCurrentEditAtomStrmPos))
{
- rStCtrl.Seek( nCurrentEditAtomStrmPos );
ReadPptUserEditAtom( rStCtrl, aCurrentEditAtom );
}
}