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

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Sun Apr 11 18:43:24 UTC 2021


 svx/source/engine3d/obj3d.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit ae8bde1b03335a096ea2acd7fe20a6f1a326ba35
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Sun Apr 11 14:51:03 2021 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Sun Apr 11 20:42:46 2021 +0200

    ofz#30962 Timeout: skip slow path for fuzzing
    
    Change-Id: I49c3b06e9b54d9d6657b64b153907f995e572a19
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113951
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/svx/source/engine3d/obj3d.cxx b/svx/source/engine3d/obj3d.cxx
index c770a751018a..441e3271d34d 100644
--- a/svx/source/engine3d/obj3d.cxx
+++ b/svx/source/engine3d/obj3d.cxx
@@ -40,6 +40,7 @@
 #include <svx/sdr/contact/viewcontactofe3dscene.hxx>
 #include <svx/e3dsceneupdater.hxx>
 #include <rtl/ustrbuf.hxx>
+#include <unotools/configmgr.hxx>
 
 using namespace com::sun::star;
 
@@ -290,6 +291,9 @@ E3dScene* E3dObject::getRootE3dSceneFromE3dObject() const
 basegfx::B3DRange E3dObject::RecalcBoundVolume() const
 {
     basegfx::B3DRange aRetval;
+    if (utl::ConfigManager::IsFuzzing()) // skip slow path for fuzzing
+        return aRetval;
+
     const sdr::contact::ViewContactOfE3d* pVCOfE3D = dynamic_cast< const sdr::contact::ViewContactOfE3d* >(&GetViewContact());
 
     if(pVCOfE3D)


More information about the Libreoffice-commits mailing list