summaryrefslogtreecommitdiffstats
path: root/filter/source/graphicfilter/icgm/actimpr.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'filter/source/graphicfilter/icgm/actimpr.cxx')
-rw-r--r--filter/source/graphicfilter/icgm/actimpr.cxx7
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++;
}