sc/source/filter/lotus/op.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 2b6274f2e40ecab5801a84ee93ad0e13836e84aa
Author: Caolán McNamara <caol...@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 <caol...@redhat.com>
    Tested-by: Caolán McNamara <caol...@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
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to