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

Caolán McNamara caolanm at redhat.com
Sat Oct 21 18:30:53 UTC 2017


 filter/source/msfilter/msdffimp.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit eaa54fd26ed9f3f873a2721760dd0709202e927c
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Sat Oct 21 17:52:33 2017 +0100

    check seek succeeded
    
    Change-Id: Idd8f0c02e266086f069dd9e3f7f4b8944f2859d3
    Reviewed-on: https://gerrit.libreoffice.org/43667
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/filter/source/msfilter/msdffimp.cxx b/filter/source/msfilter/msdffimp.cxx
index 12d3ca764090..cfcc4f641cd9 100644
--- a/filter/source/msfilter/msdffimp.cxx
+++ b/filter/source/msfilter/msdffimp.cxx
@@ -6179,7 +6179,8 @@ bool SvxMSDffManager::GetShapeContainerData( SvStream& rSt,
         }
         else
         {
-            rSt.SeekRel( nLength );
+            if (!checkSeek(rSt, rSt.Tell() + nLength))
+                return false;
             nReadSpCont += nLength;
         }
     }


More information about the Libreoffice-commits mailing list