[Libreoffice-commits] core.git: svx/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Sun Aug 22 13:38:47 UTC 2021


 svx/source/sdr/contact/viewcontactofsdrpathobj.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 4555be3b51c7f48074441ba789df31e7920aa812
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Sun Aug 22 12:09:24 2021 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Sun Aug 22 15:38:13 2021 +0200

    ofz#36673 Indirect leak
    
    Change-Id: I294dccbf4517ee7714ee9055953a45bdd630b5a5
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120839
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/svx/source/sdr/contact/viewcontactofsdrpathobj.cxx b/svx/source/sdr/contact/viewcontactofsdrpathobj.cxx
index 7786c875bbde..694c3ea32947 100644
--- a/svx/source/sdr/contact/viewcontactofsdrpathobj.cxx
+++ b/svx/source/sdr/contact/viewcontactofsdrpathobj.cxx
@@ -28,6 +28,7 @@
 #include <sdr/primitive2d/sdrpathprimitive2d.hxx>
 #include <basegfx/matrix/b2dhommatrixtools.hxx>
 #include <basegfx/polygon/b2dpolygontools.hxx>
+#include <unotools/configmgr.hxx>
 #include <vcl/canvastools.hxx>
 
 namespace sdr::contact
@@ -97,7 +98,7 @@ namespace sdr::contact
 
                 //But, see tdf#101187, only do this if our generous clip region
                 //would not over flow into a tiny clip region
-                if (nPageWidth < SAL_MAX_INT32/2 && nPageHeight < SAL_MAX_INT32/2)
+                if (nPageWidth < SAL_MAX_INT32/2 && nPageHeight < SAL_MAX_INT32/2 && !utl::ConfigManager::IsFuzzing())
                 {
                     //But, see tdf#97276, tdf#126184 and tdf#98366. Don't clip too much if the
                     //underlying page dimension is unknown or a paste document


More information about the Libreoffice-commits mailing list