[Libreoffice-commits] core.git: sc/source
Caolán McNamara
caolanm at redhat.com
Mon Feb 19 16:54:36 UTC 2018
sc/source/filter/lotus/op.cxx | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 2b6274f2e40ecab5801a84ee93ad0e13836e84aa
Author: Caolán McNamara <caolanm at redhat.com>
Date: Mon Feb 19 13:57:33 2018 +0000
ofz#5956 Timeout
Change-Id: I72f7601d88213953997c9f6eef30ee85a486a20b
Reviewed-on: https://gerrit.libreoffice.org/49996
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/sc/source/filter/lotus/op.cxx b/sc/source/filter/lotus/op.cxx
index dceb1594b294..e78419726141 100644
--- a/sc/source/filter/lotus/op.cxx
+++ b/sc/source/filter/lotus/op.cxx
@@ -316,6 +316,8 @@ void OP_Window1(LotusContext& rContext, SvStream& r, sal_uInt16 n)
r.SeekRel( 1 ); // skip 'unused'
r.ReadUInt16( nDefWidth );
+ if (!r.good())
+ return;
r.SeekRel( n - 8 ); // skip the rest
More information about the Libreoffice-commits
mailing list