sw/source/filter/ww8/ww8par3.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit bc75f71139a2f711813013fe2380d9a61e383574
Author: Caolán McNamara <caol...@redhat.com>
Date:   Wed Jan 24 15:39:28 2018 +0000

    ofz: check nLevel against maParaSprms size
    
    Change-Id: I9bcaf176e6a2f70348712ca98c4176125c2f455e
    Reviewed-on: https://gerrit.libreoffice.org/48521
    Reviewed-by: Michael Stahl <mst...@redhat.com>
    Tested-by: Jenkins <c...@libreoffice.org>

diff --git a/sw/source/filter/ww8/ww8par3.cxx b/sw/source/filter/ww8/ww8par3.cxx
index 397c664ad71c..d96f061af98d 100644
--- a/sw/source/filter/ww8/ww8par3.cxx
+++ b/sw/source/filter/ww8/ww8par3.cxx
@@ -1422,7 +1422,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]);
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to