sc/source/filter/html/htmlpars.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit e3c181331dbd5fca36576bac4e79ddcceb7369e5
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Wed Sep 18 17:29:41 2024 +0100
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Thu Sep 19 09:20:43 2024 +0200

    ofz: Timeout in schtmlfuzzer
    
    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 <caolan.mcnam...@collabora.com>

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<SCROW>(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:

Reply via email to