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

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

Reply via email to