From 309c78fcf2fa004135fd6b15f9036dd69200457c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Wed, 20 Sep 2017 09:37:11 +0100 Subject: [PATCH] ofz#2881 avoid oom MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I1fa816bac5563503b9a4cc142bf3ec5d35ef0fbd Reviewed-on: https://gerrit.libreoffice.org/42536 Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- sd/source/filter/ppt/pptin.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sd/source/filter/ppt/pptin.cxx b/sd/source/filter/ppt/pptin.cxx index 263e27deb041..2fb4c47cbfd9 100644 --- a/sd/source/filter/ppt/pptin.cxx +++ b/sd/source/filter/ppt/pptin.cxx @@ -331,7 +331,7 @@ bool ImplSdPPTImport::Import() break; } auto nPos = aPropItem.Tell() + nTemp; - if (nPos != aPropItem.Seek(nPos)) + if (!checkSeek(aPropItem, nPos)) { bVecOk = false; break;