Kaydet (Commit) 4363606f authored tarafından Caolán McNamara's avatar Caolán McNamara Kaydeden (comit) Andras Timar

avoid hang in certain ww6 docs

Change-Id: Ife15f6a6e4b31c6e226a154dd708290266e86a2e
(cherry picked from commit d0813b43)
Reviewed-on: https://gerrit.libreoffice.org/17911Reviewed-by: 's avatarDavid Tardon <dtardon@redhat.com>
Tested-by: 's avatarDavid Tardon <dtardon@redhat.com>
üst 882e20b2
This diff was suppressed by a .gitattributes entry.
......@@ -3881,7 +3881,7 @@ void SwWW8ImplReader::ReadAttrs(WW8_CP& rTextPos, WW8_CP& rNext, long nTextEnd,
{
m_aCurrAttrCP = rTextPos;
rNext = ReadTextAttr(rTextPos, nTextEnd, rbStartLine);
if (rTextPos == rNext && rTextPos == WW8_CP_MAX)
if (rTextPos == rNext && rTextPos >= nTextEnd)
break;
}
while( rTextPos >= rNext );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment