basegfx/source/tools/systemdependentdata.cxx |    8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

New commits:
commit 84f5a7f5c714ed57e9ff7e0a2231425e52d3f4b8
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Tue Mar 29 21:01:59 2022 +0100
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Wed Mar 30 09:40:20 2022 +0200

    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 <caol...@redhat.com>

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);

Reply via email to