From 441889318ff3bd1340e5c3d8afd868db948f1535 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sat, 7 May 2022 20:22:56 +0100 Subject: ofz#46070 Out-of-memory MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ibc242ae6b267d989997162d9a4dac9a409f172be Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133993 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- basegfx/source/tools/systemdependentdata.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'basegfx/source') 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); -- cgit