diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-03-15 16:06:02 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-03-15 16:35:02 +0000 |
commit | 89628e4814b96b6d1bce768ca9b45eb665871d11 (patch) | |
tree | 0bf5dbb3bb167e2dd3e81f6f81c03a33d4f54b72 /unotools | |
parent | 68598e06bc5a5fefb917f436d44bec1623d0fbeb (diff) |
avoid config during fuzzing
Change-Id: I61906c243f592012691d69a335db42b2010402b7
Diffstat (limited to 'unotools')
-rw-r--r-- | unotools/source/config/securityoptions.cxx | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/unotools/source/config/securityoptions.cxx b/unotools/source/config/securityoptions.cxx index 7c51561d75eb..569ce166715e 100644 --- a/unotools/source/config/securityoptions.cxx +++ b/unotools/source/config/securityoptions.cxx @@ -285,10 +285,13 @@ void SvtSecurityOptions_Impl::SetProperty( sal_Int32 nProperty, const Any& rValu { m_seqSecureURLs.realloc( 0 ); rValue >>= m_seqSecureURLs; - SvtPathOptions aOpt; - sal_uInt32 nCount = m_seqSecureURLs.getLength(); - for( sal_uInt32 nItem = 0; nItem < nCount; ++nItem ) - m_seqSecureURLs[ nItem ] = aOpt.SubstituteVariable( m_seqSecureURLs[ nItem ] ); + if (!utl::ConfigManager::IsAvoidConfig()) + { + SvtPathOptions aOpt; + sal_uInt32 nCount = m_seqSecureURLs.getLength(); + for( sal_uInt32 nItem = 0; nItem < nCount; ++nItem ) + m_seqSecureURLs[ nItem ] = aOpt.SubstituteVariable( m_seqSecureURLs[ nItem ] ); + } m_bROSecureURLs = bRO; } break; |