lotuswordpro/source/filter/lwptablelayout.cxx | 8 ++++++++ 1 file changed, 8 insertions(+)
New commits: commit 3642db420a66133ebe4aabb346ce0adca17e26e6 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Fri Sep 9 11:28:44 2022 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Fri Sep 9 13:40:46 2022 +0200 ofz#51149 avoid Timeout Change-Id: I7709e69154d231e597d364210bc876afca3df4a3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139719 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/lotuswordpro/source/filter/lwptablelayout.cxx b/lotuswordpro/source/filter/lwptablelayout.cxx index 7624664964d7..c2760c6c6c4c 100644 --- a/lotuswordpro/source/filter/lwptablelayout.cxx +++ b/lotuswordpro/source/filter/lwptablelayout.cxx @@ -81,6 +81,7 @@ #include <xfilter/xfparastyle.hxx> #include <o3tl/sorted_vector.hxx> #include <sal/log.hxx> +#include <unotools/configmgr.hxx> #include <algorithm> #include <memory> @@ -801,7 +802,14 @@ void LwpTableLayout::ParseTable() sal_uInt16 nEndHeadRow; pTableHeading->GetStartEndRow(nStartHeadRow,nEndHeadRow); if (nStartHeadRow == 0) + { + if (utl::ConfigManager::IsFuzzing() && nEndHeadRow - nStartHeadRow > 128) + { + SAL_WARN("lwp", "truncating HeadingRow for fuzzing performance"); + nEndHeadRow = nStartHeadRow + 128; + } nContentRow = ConvertHeadingRow(m_pXFTable,nStartHeadRow,nEndHeadRow+1); + } } ConvertTable(m_pXFTable, nContentRow, nRow, 0, nCol);