summaryrefslogtreecommitdiff
path: root/hwpfilter
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2023-01-30 09:15:17 +0000
committerMichael Stahl <michael.stahl@allotropia.de>2023-01-31 09:52:14 +0000
commit2eac9edd8e65277bb9a69e9514e8bc2a6e20e437 (patch)
treec1e07120d90717ceb06544a74ba0d06cd9dd993e /hwpfilter
parent1ce2d11a042448f81e035647a380e46662e9633e (diff)
ofz#555520 check level is < MAX_OUTLINE_LEVEL
Change-Id: I61ac10f40cd754a1ea3186ab89e9bfd1e99dc563 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146317 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Diffstat (limited to 'hwpfilter')
-rw-r--r--hwpfilter/source/hbox.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/hwpfilter/source/hbox.cxx b/hwpfilter/source/hbox.cxx
index acf6770ec9ba..16236bb8fc41 100644
--- a/hwpfilter/source/hbox.cxx
+++ b/hwpfilter/source/hbox.cxx
@@ -595,10 +595,11 @@ OUString Outline::GetUnicode() const
case OLSTY_NUMSIG1:
case OLSTY_NUMSIG2:
case OLSTY_NUMSIG3:
- {
- getOutlineNumStr(shape, level, number[level], buffer);
+ {
+ if (level < std::size(number))
+ getOutlineNumStr(shape, level, number[level], buffer);
return hstr2OUString(buffer);
- }
+ }
case OLSTY_BULLET1:
case OLSTY_BULLET2:
case OLSTY_BULLET3: