Kaydet (Commit) a1575042 authored tarafından Caolán McNamara's avatar Caolán McNamara Kaydeden (comit) Michael Stahl

ofz#4946 keep nPos within bounds

Change-Id: Ib5dc37b489b7b2101cf852a46f48fff1b7447a30
Reviewed-on: https://gerrit.libreoffice.org/47378Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMichael Stahl <mstahl@redhat.com>
üst 529924a2
......@@ -153,7 +153,9 @@ inline const OUString& LwpSilverBullet::GetBulletStyleName() const
}
inline bool LwpSilverBullet::IsLesserLevel(sal_uInt16 nPos)
{
return ((m_pResetPositionFlags[nPos] & LESSERLEVEL) != 0);
if (nPos < SAL_N_ELEMENTS(m_pResetPositionFlags))
return ((m_pResetPositionFlags[nPos] & LESSERLEVEL) != 0);
return false;
}
#endif
......
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