From e3c181331dbd5fca36576bac4e79ddcceb7369e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Wed, 18 Sep 2024 17:29:41 +0100 Subject: [PATCH] ofz: Timeout in schtmlfuzzer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit use same fuzzing rowspan limit as xml import Change-Id: Id75d8cb8859bb2a6494d6aea160905cc6b75cb46 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173645 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- sc/source/filter/html/htmlpars.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sc/source/filter/html/htmlpars.cxx b/sc/source/filter/html/htmlpars.cxx index cf4aa77a3ae3..924346c7de8e 100644 --- a/sc/source/filter/html/htmlpars.cxx +++ b/sc/source/filter/html/htmlpars.cxx @@ -1082,6 +1082,8 @@ void ScHTMLLayoutParser::TableDataOn( HtmlImportInfo* pInfo ) mxActEntry->nRowOverlap = static_cast(nRowOverlap); else SAL_WARN("sc", "ScHTMLLayoutParser::TableDataOn ignoring rowspan: " << nRowOverlap); + if (comphelper::IsFuzzing()) + mxActEntry->nRowOverlap = std::min(mxActEntry->nRowOverlap, sal_Int32(1024)); } break; case HtmlOptionId::ALIGN: