diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-10-09 21:30:38 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-10-10 14:57:09 +0200 |
commit | 42bfd7758bf2ed5b8dd65519f8c2c186b4151b1d (patch) | |
tree | cf539080ee0c0dcaa0ff7a6b9d0d82e4e4dbc337 | |
parent | 7c54dfe7b8822cebd314347bb643ce61477095b1 (diff) |
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 <caolanm@redhat.com>
-rw-r--r-- | filter/source/graphicfilter/icgm/actimpr.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
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++; } |