summaryrefslogtreecommitdiff
path: root/lotuswordpro
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-10-09 16:32:39 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-10-09 16:59:52 +0100
commit333ec5789a01dfc165598ade66de518132c64865 (patch)
tree0fc48cf4ebffff0910498f437cea549fb224ac2a /lotuswordpro
parent894dac7b8c85e041d609fc91b89bf3bc01edf82a (diff)
CID#736180 out of bounds
Change-Id: I2e775a49a1c852053e3c7996381f20d3eda1189c
Diffstat (limited to 'lotuswordpro')
-rw-r--r--lotuswordpro/source/filter/lwptoc.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/lotuswordpro/source/filter/lwptoc.cxx b/lotuswordpro/source/filter/lwptoc.cxx
index ef4af4549ca3..8e802a6463e2 100644
--- a/lotuswordpro/source/filter/lwptoc.cxx
+++ b/lotuswordpro/source/filter/lwptoc.cxx
@@ -353,6 +353,9 @@ sal_Bool LwpTocSuperLayout::GetUsePageNumber(sal_uInt16 index)
*/
sal_uInt16 LwpTocSuperLayout::GetSeparatorType(sal_uInt16 index)
{
+ if (index >= MAX_LEVELS)
+ return NONE;
+
sal_uInt16 Flag = (sal_uInt16)m_nFlags[index];
if (Flag & TS_LEADERDOTS)