diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-01-04 10:14:30 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-01-04 14:46:34 +0100 |
commit | a05ebbc59a40d95760fee8749e1daf3e4b1ed68c (patch) | |
tree | 1914424554247ba30a6a81b226bf5b1c7d2c6c10 /lotuswordpro | |
parent | 4f11182566b02f9f1c1821985a94b4b4de363fbb (diff) |
ofz#4946 keep nPos within bounds
Change-Id: Ib5dc37b489b7b2101cf852a46f48fff1b7447a30
Reviewed-on: https://gerrit.libreoffice.org/47376
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@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 c86d387c6f63..2f04feb4e487 100644 --- a/lotuswordpro/source/filter/lwpsilverbullet.hxx +++ b/lotuswordpro/source/filter/lwpsilverbullet.hxx @@ -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 |