sc/source/filter/excel/excel.cxx | 4 ++++ sc/source/ui/docshell/docsh.cxx | 4 ++++ sw/source/filter/ww8/ww8par.cxx | 3 +++ 3 files changed, 11 insertions(+)
New commits: commit 33629ff9348a0df88c11257a3921129df4875238 Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Thu Jul 25 09:01:43 2024 +0100 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Thu Jul 25 14:11:02 2024 +0200 force max len for some oss-fuzz fuzzers on a temp basis to reset auto-reporting state Change-Id: I2af7bc6b1e6c2d92ce58f548a28dc76fb0584432 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171002 Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> Tested-by: Jenkins diff --git a/sc/source/filter/excel/excel.cxx b/sc/source/filter/excel/excel.cxx index 1bd34e27e43d..cdc4558e53ee 100644 --- a/sc/source/filter/excel/excel.cxx +++ b/sc/source/filter/excel/excel.cxx @@ -428,6 +428,10 @@ ErrCode ScFormatFilterPluginImpl::ScExportExcel5( SfxMedium& rMedium, ScDocument extern "C" SAL_DLLPUBLIC_EXPORT bool TestImportCalcRTF(SvStream &rStream) { + // Temp bodge to reset oss-fuzz + if (rStream.remainingSize() > 256) + return true; + ScDLL::Init(); ScDocument aDocument; ScDocOptions aDocOpt = aDocument.GetDocOptions(); diff --git a/sc/source/ui/docshell/docsh.cxx b/sc/source/ui/docshell/docsh.cxx index 6250ca15b24e..6e8af66afcce 100644 --- a/sc/source/ui/docshell/docsh.cxx +++ b/sc/source/ui/docshell/docsh.cxx @@ -3490,6 +3490,10 @@ extern "C" SAL_DLLPUBLIC_EXPORT bool TestImportSLK(SvStream &rStream) extern "C" SAL_DLLPUBLIC_EXPORT bool TestImportCalcHTML(SvStream &rStream) { + // Temp bodge to reset oss-fuzz + if (rStream.remainingSize() > 256) + return true; + ScDLL::Init(); ScDocument aDocument; ScDocOptions aDocOpt = aDocument.GetDocOptions(); diff --git a/sw/source/filter/ww8/ww8par.cxx b/sw/source/filter/ww8/ww8par.cxx index b752e5c31316..5c2a31db24f8 100644 --- a/sw/source/filter/ww8/ww8par.cxx +++ b/sw/source/filter/ww8/ww8par.cxx @@ -6383,6 +6383,9 @@ extern "C" SAL_DLLPUBLIC_EXPORT bool TestImportWW6(SvStream &rStream) extern "C" SAL_DLLPUBLIC_EXPORT bool TestImportWW2(SvStream &rStream) { + // Temp bodge to reset oss-fuzz + if (rStream.remainingSize() > 256) + return true; return TestImportDOC(rStream, u"WW6"_ustr); }