summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-01-24 15:39:28 +0000
committerMichael Stahl <mstahl@redhat.com>2018-01-24 20:57:55 +0100
commitd8fcf54fae9af7afbde16cceffbcf936ff58fa8d (patch)
treed9748949b192eaa61e3d4843e199cfaa4ebb24ec
parent2373acbbb21dd6095d7bfc20b31bbfaa1d9bbad6 (diff)
ofz: check nLevel against maParaSprms size
Change-Id: I9bcaf176e6a2f70348712ca98c4176125c2f455e Reviewed-on: https://gerrit.libreoffice.org/48520 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Jenkins <ci@libreoffice.org>
-rw-r--r--sw/source/filter/ww8/ww8par3.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/ww8par3.cxx b/sw/source/filter/ww8/ww8par3.cxx
index 8dc161d582d4..c00f7f09a916 100644
--- a/sw/source/filter/ww8/ww8par3.cxx
+++ b/sw/source/filter/ww8/ww8par3.cxx
@@ -1414,7 +1414,8 @@ WW8ListManager::WW8ListManager(SvStream& rSt_, SwWW8ImplReader& rReader_)
aLFOLVL.bFormat = true;
// if bStartup is true, replace Startup-Level
// with the LVLF that is saved in the LVL
- bLVLOk = ReadLVL(aNumFormat, aItemSet[nLevel],
+ bLVLOk = nLevel < rLFOInfo.maParaSprms.size() &&
+ ReadLVL(aNumFormat, aItemSet[nLevel],
pParentListInfo->aIdSty[nLevel],
aLFOLVL.bStartAt, aNotReallyThere, nLevel,
rLFOInfo.maParaSprms[nLevel]);