diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-07-15 09:53:27 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-07-15 16:19:36 +0200 |
commit | ac90bb44f53e099bd8743662b20d0e5ae1752fa2 (patch) | |
tree | a2fe10835dcfd281f2057a58d5c0a5926dbbc025 /sw | |
parent | 8f121c1a9d5583e187f5468fc197c92e4c019f16 (diff) |
ofz#24130 check level before accessing array
Change-Id: Ic583ac6d8904332ae744d8e7c6639570e74a6338
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98804
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/filter/ww8/ww8par3.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/ww8par3.cxx b/sw/source/filter/ww8/ww8par3.cxx index 395a1bf2e9db..5b49f98386f7 100644 --- a/sw/source/filter/ww8/ww8par3.cxx +++ b/sw/source/filter/ww8/ww8par3.cxx @@ -891,7 +891,7 @@ bool WW8ListManager::ReadLVL(SwNumFormat& rNumFormat, std::unique_ptr<SfxItemSet { sal_uInt32 nExtraOffset = 0; sal_uInt8 nLevelB = 0; - while (aLVL.aOfsNumsXCH[nLevelB] && nLevelB < nMaxLevel) + while (nLevelB < nMaxLevel && aLVL.aOfsNumsXCH[nLevelB]) { // Replacement symbol is read from source string from position taken from aOfsNumsXCH array sal_uInt8 nOffset = aLVL.aOfsNumsXCH[nLevelB] + nExtraOffset - 1; |