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>
This commit is contained in:
Caolán McNamara
2017-09-26 13:13:09 +01:00
parent 04f269f4e9
commit 2cd576c3bb

View File

@ -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 );
}
}