diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-03-29 21:01:59 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-03-30 09:40:20 +0200 |
commit | 84f5a7f5c714ed57e9ff7e0a2231425e52d3f4b8 (patch) | |
tree | 6b571aebb4876596f78275b96c526fb32a1db9db /basegfx | |
parent | fc6d597a933f9ca71b479864b31682dac17724c3 (diff) |
ofz#46070 Out-of-memory
Change-Id: I35bef5643d8a620aaa001bb1f4f7a9a60779ed97
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132288
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'basegfx')
-rw-r--r-- | basegfx/source/tools/systemdependentdata.cxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/basegfx/source/tools/systemdependentdata.cxx b/basegfx/source/tools/systemdependentdata.cxx index 106124f57389..6bf80413d12b 100644 --- a/basegfx/source/tools/systemdependentdata.cxx +++ b/basegfx/source/tools/systemdependentdata.cxx @@ -8,6 +8,7 @@ */ #include <basegfx/utils/systemdependentdata.hxx> +#include <config_fuzzers.h> #include <math.h> namespace basegfx @@ -47,7 +48,12 @@ namespace basegfx // For the future, a more sophisticated differentiation may be added if(nBytes > 450) { - const sal_uInt32 nSeconds = 60; // HoldCyclesInSeconds + // 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); |