hwpfilter/source/hbox.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
New commits: commit 2eac9edd8e65277bb9a69e9514e8bc2a6e20e437 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Mon Jan 30 09:15:17 2023 +0000 Commit: Michael Stahl <michael.st...@allotropia.de> CommitDate: Tue Jan 31 09:52:14 2023 +0000 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.st...@allotropia.de> 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: