diff options
author | Caolán McNamara <caolanm@redhat.com> | 2023-01-30 09:15:17 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2023-01-30 16:56:54 +0000 |
commit | e783208906611238a9a6ce9d14029eb732fc611d (patch) | |
tree | 0396a2fe57c7738ccadf62941d719e84c3e5efcf /hwpfilter/source | |
parent | fb4c953cac6eeb3b0c7b3832facfe3a82092e69f (diff) |
ofz#55520 check level is < MAX_OUTLINE_LEVEL
Change-Id: I61ac10f40cd754a1ea3186ab89e9bfd1e99dc563
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146340
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'hwpfilter/source')
-rw-r--r-- | hwpfilter/source/hbox.cxx | 7 |
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: |