Kaydet (Commit) 5a47be27 authored tarafından Caolán McNamara's avatar Caolán McNamara Kaydeden (comit) Miklos Vajna

don't hang on busted subdocument offsets

Change-Id: I5d1d18f864496ec98894703f0a22e211a9dd14a5
(cherry picked from commit a2b90cd0)
Reviewed-on: https://gerrit.libreoffice.org/18747Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.co.uk>
üst e17187c3
This diff was suppressed by a .gitattributes entry.
......@@ -4450,10 +4450,14 @@ void WW8PLCFxDesc::ReduceByOffset()
else
nStartPos -= nCpOfs;
}
if( nEndPos != WW8_CP_MAX )
if (nEndPos != WW8_CP_MAX)
{
OSL_ENSURE(nCpOfs <= nEndPos,
"oh oh, so much for the subdocument piece theory");
if (nCpOfs > nEndPos)
{
SAL_WARN("sw.ww8", "broken subdocument piece entry");
nEndPos = WW8_CP_MAX;
}
else
nEndPos -= nCpOfs;
}
}
......
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