[Libreoffice-commits] core.git: sfx2/source

Caolán McNamara caolanm at redhat.com
Tue Sep 26 19:27:23 UTC 2017


 sfx2/source/doc/oleprops.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 6565de2c88aeeb2a8130fa65ae55b15cc7b8b2ca
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Tue Sep 26 13:09:44 2017 +0100

    fail earlier on bad offsets
    
    Change-Id: Ifea7653435743bb652afa68d734ed553b04606d7
    Reviewed-on: https://gerrit.libreoffice.org/42804
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sfx2/source/doc/oleprops.cxx b/sfx2/source/doc/oleprops.cxx
index 1505f766b4df..8391dede0a4b 100644
--- a/sfx2/source/doc/oleprops.cxx
+++ b/sfx2/source/doc/oleprops.cxx
@@ -1186,7 +1186,8 @@ void SfxOlePropertySet::ImplLoad( SvStream& rStrm )
             break;
         nSectPosPos = rStrm.Tell();
         // read section
-        rStrm.Seek(nSectPos);
+        if (!checkSeek(rStrm, nSectPos))
+            break;
         LoadObject(rStrm, AddSection(aSectGuid));
         if (!rStrm.good())
             break;


More information about the Libreoffice-commits mailing list