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

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Thu Nov 21 13:30:55 UTC 2019


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

New commits:
commit 14d6a07abd7685d8867731938d4c8c3483672909
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Thu Nov 21 12:17:04 2019 +0000
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Thu Nov 21 14:29:27 2019 +0100

    ofz#19034 fix ~infinite loop
    
    Change-Id: Ibc90b3b68a55f8396fbe623eb0db6c289fe978a1
    Reviewed-on: https://gerrit.libreoffice.org/83383
    Tested-by: Jenkins
    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 ebe405aefb9d..10a0ca1f6382 100644
--- a/filter/source/msfilter/msdffimp.cxx
+++ b/filter/source/msfilter/msdffimp.cxx
@@ -6241,7 +6241,7 @@ bool SvxMSDffManager::GetShapeContainerData( SvStream& rSt,
             // search for the Blip Property!
             sal_uLong  nPropRead = 0;
             nLenShapePropTbl = nLength;
-            long nStartShapePropTbl = rSt.Tell();
+            auto nStartShapePropTbl = rSt.Tell();
             do
             {
                 sal_uInt16 nPropId(0);
@@ -6324,7 +6324,7 @@ bool SvxMSDffManager::GetShapeContainerData( SvStream& rSt,
                     break;
                 }
             }
-            while( nPropRead < nLenShapePropTbl );
+            while (rSt.good() && nPropRead < nLenShapePropTbl);
             rSt.Seek( nStartShapePropTbl + nLenShapePropTbl );
             nReadSpCont += nLenShapePropTbl;
         }


More information about the Libreoffice-commits mailing list