summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-02-19 13:57:33 +0000
committerCaolán McNamara <caolanm@redhat.com>2018-02-19 17:54:16 +0100
commit2b6274f2e40ecab5801a84ee93ad0e13836e84aa (patch)
tree4b077e0aba234483030c4bb10deabcc811aba67c
parent837ba68ac04ed52716eef531f034b6a49f576178 (diff)
ofz#5956 Timeout
Change-Id: I72f7601d88213953997c9f6eef30ee85a486a20b Reviewed-on: https://gerrit.libreoffice.org/49996 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--sc/source/filter/lotus/op.cxx2
1 files changed, 2 insertions, 0 deletions
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