sw/source/filter/ww8/ww8par.cxx | 6 ++++++ 1 file changed, 6 insertions(+)
New commits: commit 6da092245a0c61223c8fd0d4b2bd183ae3342a55 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Wed Nov 9 09:31:49 2022 +0000 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Wed Nov 9 11:57:51 2022 +0100 ofz#53154 Timeout Change-Id: Ibfd62447eb544f243b9917e20049ca1d06fbb0f7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142476 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/sw/source/filter/ww8/ww8par.cxx b/sw/source/filter/ww8/ww8par.cxx index 1d38928e0689..dca389d937a8 100644 --- a/sw/source/filter/ww8/ww8par.cxx +++ b/sw/source/filter/ww8/ww8par.cxx @@ -3636,6 +3636,7 @@ bool SwWW8ImplReader::ReadChar(tools::Long nPosCp, tools::Long nCpOfs) switch (nWCharVal) { case 0: + if (!m_bFuzzing) { // Page number SwPageNumberField aField( @@ -3643,6 +3644,11 @@ bool SwWW8ImplReader::ReadChar(tools::Long nPosCp, tools::Long nCpOfs) SwFieldIds::PageNumber )), PG_RANDOM, SVX_NUM_ARABIC); m_rDoc.getIDocumentContentOperations().InsertPoolItem(*m_pPaM, SwFormatField(aField)); } + else + { + // extremely slow, so skip for fuzzing, and insert a space instead + cInsert = ' '; + } break; case 0xe: // if there is only one column word treats a column break like a pagebreak.