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

Caolán McNamara caolanm at redhat.com
Wed Nov 8 17:21:50 UTC 2017


 sc/source/ui/docshell/externalrefmgr.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 560ee8d10201ee6cdac21e9400d60bcc5f064bb5
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Wed Nov 8 15:30:20 2017 +0000

    ofz#4122 just avoid ucb path for fuzzing
    
    Change-Id: If021d54df28343a6d8885a7a009b251a394d388b
    Reviewed-on: https://gerrit.libreoffice.org/44489
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sc/source/ui/docshell/externalrefmgr.cxx b/sc/source/ui/docshell/externalrefmgr.cxx
index beb47fc010dd..fe34a0b88e91 100644
--- a/sc/source/ui/docshell/externalrefmgr.cxx
+++ b/sc/source/ui/docshell/externalrefmgr.cxx
@@ -49,6 +49,7 @@
 #include <svl/sharedstringpool.hxx>
 #include <sfx2/linkmgr.hxx>
 #include <tools/urlobj.hxx>
+#include <unotools/configmgr.hxx>
 #include <unotools/ucbhelper.hxx>
 #include <vcl/msgbox.hxx>
 #include <stringutil.hxx>
@@ -2108,7 +2109,7 @@ bool ScExternalRefManager::isValidRangeName(sal_uInt16 nFileId, const OUString&
         // Range name is cached.
         return true;
 
-    pSrcDoc = getSrcDocument(nFileId);
+    pSrcDoc = utl::ConfigManager::IsAvoidConfig() ? nullptr : getSrcDocument(nFileId);
     if (!pSrcDoc)
         // failed to load document from disk.
         return false;


More information about the Libreoffice-commits mailing list