[Libreoffice-commits] core.git: Branch 'libreoffice-4-4' - sw/qa sw/source

Caolán McNamara caolanm at redhat.com
Sun Aug 23 11:14:14 PDT 2015


 sw/qa/core/data/ww6/pass/hang-1.doc |binary
 sw/source/filter/ww8/ww8par.cxx     |    2 +-
 2 files changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 44c27bfb62ee9e820b659132ad9f8799b67064cc
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Aug 21 14:01:03 2015 +0100

    avoid hang in certain ww6 docs
    
    (cherry picked from commit d0813b432f94d214a6961cb6a1eb11f65399e59b)
    
    Change-Id: Ife15f6a6e4b31c6e226a154dd708290266e86a2e
    Reviewed-on: https://gerrit.libreoffice.org/17927
    Reviewed-by: David Tardon <dtardon at redhat.com>
    Tested-by: David Tardon <dtardon at redhat.com>

diff --git a/sw/qa/core/data/ww6/pass/hang-1.doc b/sw/qa/core/data/ww6/pass/hang-1.doc
new file mode 100644
index 0000000..825283d
Binary files /dev/null and b/sw/qa/core/data/ww6/pass/hang-1.doc differ
diff --git a/sw/source/filter/ww8/ww8par.cxx b/sw/source/filter/ww8/ww8par.cxx
index 8f8c00b..e922037 100644
--- a/sw/source/filter/ww8/ww8par.cxx
+++ b/sw/source/filter/ww8/ww8par.cxx
@@ -3880,7 +3880,7 @@ void SwWW8ImplReader::ReadAttrs(WW8_CP& rTxtPos, WW8_CP& rNext, long nTextEnd, b
         {
             maCurrAttrCP = rTxtPos;
             rNext = ReadTextAttr(rTxtPos, nTextEnd, rbStartLine);
-            if (rTxtPos == rNext && rTxtPos == WW8_CP_MAX)
+            if (rTxtPos == rNext && rTxtPos >= nTextEnd)
                 break;
         }
         while( rTxtPos >= rNext );


More information about the Libreoffice-commits mailing list