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

Caolán McNamara caolanm at redhat.com
Sat Oct 21 17:45:06 UTC 2017


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

New commits:
commit 35ef2f6f6c234dc624a542e936df84566cc81c51
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Sat Oct 21 17:24:26 2017 +0100

    check seek succeeded
    
    Change-Id: Id124e6e2091f114984bfd2e004f5f8dcdd61f2ab
    Reviewed-on: https://gerrit.libreoffice.org/43664
    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 164f66dcc5f9..12d3ca764090 100644
--- a/filter/source/msfilter/msdffimp.cxx
+++ b/filter/source/msfilter/msdffimp.cxx
@@ -5950,7 +5950,8 @@ void SvxMSDffManager::GetDrawingGroupContainerData( SvStream& rSt, sal_uLong nLe
                 // now save the info for later access
                 m_pBLIPInfos->push_back(SvxMSDffBLIPInfo(nBLIPPos));
             }
-            rSt.SeekRel( nLength );
+            if (!checkSeek(rSt, rSt.Tell() + nLength))
+                return; // invalid offset
         }
         else return; // invalid input
     }


More information about the Libreoffice-commits mailing list