hwpfilter/source/hbox.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
New commits: commit e783208906611238a9a6ce9d14029eb732fc611d Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Mon Jan 30 09:15:17 2023 +0000 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Mon Jan 30 16:56:54 2023 +0000 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 <caol...@redhat.com> Reviewed-by: Caolán McNamara <caol...@redhat.com> 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: