filter/source/graphicfilter/icgm/actimpr.cxx | 7 +++++++ 1 file changed, 7 insertions(+)
New commits: commit 42bfd7758bf2ed5b8dd65519f8c2c186b4151b1d Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Fri Oct 9 21:30:38 2020 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Sat Oct 10 14:57:09 2020 +0200 ofz#21753 avoid unproductive timeout Change-Id: I7ce4471e68cf0e36a1951c4d4e318d6389eff8c9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104134 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/filter/source/graphicfilter/icgm/actimpr.cxx b/filter/source/graphicfilter/icgm/actimpr.cxx index 652edeed2d14..0f1352dfc7eb 100644 --- a/filter/source/graphicfilter/icgm/actimpr.cxx +++ b/filter/source/graphicfilter/icgm/actimpr.cxx @@ -52,6 +52,8 @@ #include "elements.hxx" #include "outact.hxx" +#define MAX_PAGES_FOR_FUZZING 2048 + using namespace ::com::sun::star; CGMImpressOutAct::CGMImpressOutAct(CGM& rCGM, const uno::Reference< frame::XModel > & rModel) @@ -386,6 +388,11 @@ void CGMImpressOutAct::InsertPage() maXDrawPage = xPage; if ( !ImplInitPage() ) mpCGM->mbStatus = false; + if (mnCurrentPage > MAX_PAGES_FOR_FUZZING && utl::ConfigManager::IsFuzzing()) + { + // ofz#21753 that's enough pages for fuzzing, we're not doing anything productive now + mpCGM->mbStatus = false; + } } mnCurrentPage++; } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits