From 6340986298afe94400f1d7b0afca2a45f2f0aa86 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 31 May 2019 12:26:21 +0100 Subject: ofz#15045 configuration unavailable during fuzzing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I5bc3175a7cced2429b2ce8a43cbba07e32155d72 Reviewed-on: https://gerrit.libreoffice.org/73254 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- sw/source/filter/html/swhtml.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sw/source/filter/html/swhtml.cxx b/sw/source/filter/html/swhtml.cxx index a55206287bbb..5eb5d6b437b1 100644 --- a/sw/source/filter/html/swhtml.cxx +++ b/sw/source/filter/html/swhtml.cxx @@ -42,6 +42,7 @@ #include #include #include +#include #include #include #include @@ -314,7 +315,7 @@ SwHTMLParser::SwHTMLParser( SwDoc* pD, SwPaM& rCursor, SvStream& rIn, m_pTempViewFrame(nullptr) { // If requested explicitly, then force ignoring of comments (don't create postits for them). - if (officecfg::Office::Writer::Filter::Import::HTML::IgnoreComments::get()) + if (!utl::ConfigManager::IsFuzzing() && officecfg::Office::Writer::Filter::Import::HTML::IgnoreComments::get()) m_bIgnoreHTMLComments = true; m_nEventId = nullptr; -- cgit v1.2.3