ofz#2881 avoid oom

Change-Id: I1fa816bac5563503b9a4cc142bf3ec5d35ef0fbd
Reviewed-on: https://gerrit.libreoffice.org/42536
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-20 09:37:11 +01:00
parent 4e302884ce
commit 309c78fcf2

View File

@@ -331,7 +331,7 @@ bool ImplSdPPTImport::Import()
break; break;
} }
auto nPos = aPropItem.Tell() + nTemp; auto nPos = aPropItem.Tell() + nTemp;
if (nPos != aPropItem.Seek(nPos)) if (!checkSeek(aPropItem, nPos))
{ {
bVecOk = false; bVecOk = false;
break; break;