diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-01-04 10:14:30 +0000 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2018-01-04 14:25:43 +0100 |
commit | 44c3ef7aebb13b9c0a2cfcf9a1879fb6158e6e83 (patch) | |
tree | 127bd7a6a35c2f72c0704c6a3057b52bb8abc785 /lotuswordpro | |
parent | 97db3448de9937116ebf008961e3321811bd44ec (diff) |
ofz#4946 keep nPos within bounds
Change-Id: Ib5dc37b489b7b2101cf852a46f48fff1b7447a30
Reviewed-on: https://gerrit.libreoffice.org/47379
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'lotuswordpro')
-rw-r--r-- | lotuswordpro/source/filter/lwpsilverbullet.hxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lotuswordpro/source/filter/lwpsilverbullet.hxx b/lotuswordpro/source/filter/lwpsilverbullet.hxx index f130d46c6a75..2d49e66b5ee3 100644 --- a/lotuswordpro/source/filter/lwpsilverbullet.hxx +++ b/lotuswordpro/source/filter/lwpsilverbullet.hxx @@ -155,7 +155,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 |