diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-10-09 16:32:39 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-10-09 16:59:52 +0100 |
commit | 333ec5789a01dfc165598ade66de518132c64865 (patch) | |
tree | 0fc48cf4ebffff0910498f437cea549fb224ac2a /lotuswordpro/source | |
parent | CID736196 out of bounds (diff) | |
download | core-333ec5789a01dfc165598ade66de518132c64865.tar.gz core-333ec5789a01dfc165598ade66de518132c64865.zip |
CID#736180 out of bounds
Change-Id: I2e775a49a1c852053e3c7996381f20d3eda1189c
Diffstat (limited to 'lotuswordpro/source')
-rw-r--r-- | lotuswordpro/source/filter/lwptoc.cxx | 3 |
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) |