Kaydet (Commit) 41f4fee0 authored tarafından Caolán McNamara's avatar Caolán McNamara

ofz#4647 Integer-overflow

Change-Id: Ic5593df7ad39e591ce15895205a02f2007da4147
Reviewed-on: https://gerrit.libreoffice.org/46503Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 9fcc7a90
......@@ -4114,7 +4114,7 @@ bool SwWW8ImplReader::ReadText(WW8_CP nStartCp, WW8_CP nTextLen, ManTypes nType)
if (bStartLine || m_bWasTabRowEnd)
{
// Call all 64 CRs; not for Header and the like
if ((nCrCount++ & 0x40) == 0 && nType == MAN_MAINTEXT)
if ((nCrCount++ & 0x40) == 0 && nType == MAN_MAINTEXT && l <= nTextLen)
{
if (nTextLen < WW8_CP_MAX/100)
m_nProgress = (sal_uInt16)(l * 100 / nTextLen);
......
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