summaryrefslogtreecommitdiff
path: root/basegfx/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-05-07 20:22:56 +0100
committerCaolán McNamara <caolanm@redhat.com>2022-05-07 22:53:21 +0200
commit441889318ff3bd1340e5c3d8afd868db948f1535 (patch)
tree6f8b3850942f2f079543b44860c742e2f9087758 /basegfx/source
parentcf804594215550379e092ef8dca8c9d8308c987c (diff)
ofz#46070 Out-of-memory
Change-Id: Ibc242ae6b267d989997162d9a4dac9a409f172be Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133993 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'basegfx/source')
-rw-r--r--basegfx/source/tools/systemdependentdata.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/basegfx/source/tools/systemdependentdata.cxx b/basegfx/source/tools/systemdependentdata.cxx
index 6bf80413d12b..0d64d9982cef 100644
--- a/basegfx/source/tools/systemdependentdata.cxx
+++ b/basegfx/source/tools/systemdependentdata.cxx
@@ -37,6 +37,10 @@ namespace basegfx
sal_uInt32 SystemDependentData::calculateCombinedHoldCyclesInSeconds() const
{
+#if ENABLE_FUZZERS
+ return 0;
+#endif
+
if(0 == mnCalculatedCycles)
{
const sal_Int64 nBytes(estimateUsageInBytes());
@@ -49,11 +53,7 @@ namespace basegfx
if(nBytes > 450)
{
// HoldCyclesInSeconds
-#if !ENABLE_FUZZERS
const sal_uInt32 nSeconds = 60;
-#else
- const sal_uInt32 nSeconds = 1;
-#endif
// default is Seconds (minimal is one)
sal_uInt32 nResult(0 == nSeconds ? 1 : nSeconds);