sw/source/filter/html/swhtml.cxx | 2 ++ 1 file changed, 2 insertions(+)
New commits: commit 8bc8a88bc0d8409e9c70dd9d230a73d043d1695e Author: Caolán McNamara <[email protected]> AuthorDate: Sun Mar 1 16:08:35 2026 +0000 Commit: Caolán McNamara <[email protected]> CommitDate: Mon Mar 2 00:01:09 2026 +0100 ofz#390465661 make an effort to reduce Timeout ==259== ERROR: libFuzzer: timeout after 61 seconds #0 0x5acc95a80b31 in __sanitizer_print_stack_trace /src/llvm-project/compiler-rt/lib/asan/asan_stack.cpp:87:3 #1 0x5acc959aa048 in fuzzer::PrintStackTrace() /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerUtil.cpp:210:5 #2 0x5acc9598d90b in fuzzer::Fuzzer::AlarmCallback() /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerLoop.cpp:304:5 #3 0x7ada6679441f in libpthread.so.0 #4 0x5acc959a7e32 in AddValue /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerValueBitMap.h:38:33 #5 0x5acc959a7e32 in HandleCmp<unsigned int> /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerTracePC.cpp:391:19 #6 0x5acc959a7e32 in __sanitizer_cov_trace_cmp4 /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerTracePC.cpp:505:15 #7 0x5acc97271beb in operator() /src/libreoffice/sw/source/core/txtnode/thints.cxx:2817:42 #8 0x5acc97271beb in SwpHints::MergePortions(SwTextNode&) /src/libreoffice/sw/source/core/txtnode/thints.cxx:2831:19 #9 0x5acc97267ac5 in SwpHints::TryInsertHint(SwTextAttr*, SwTextNode&, SetAttrMode) /src/libreoffice/sw/source/core/txtnode/thints.cxx:3355:13 #10 0x5acc972626de in SwTextNode::InsertHint(SwTextAttr*, SetAttrMode) /src/libreoffice/sw/source/core/txtnode/thints.cxx:1732:39 This MergePortions thing is skipped when SetInXMLImport is true, maybe we should skip it always when SetInReading is true? Experiment with the html fuzzer if it would work anyway. Change-Id: Ia1a3e0fa91c0117059a6783a6161c6161fed4211 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/200717 Tested-by: Caolán McNamara <[email protected]> Reviewed-by: Caolán McNamara <[email protected]> diff --git a/sw/source/filter/html/swhtml.cxx b/sw/source/filter/html/swhtml.cxx index 8736846d04c1..df2bfcb1dcd7 100644 --- a/sw/source/filter/html/swhtml.cxx +++ b/sw/source/filter/html/swhtml.cxx @@ -5666,6 +5666,7 @@ bool TestImportHTML(SvStream &rStream) SwPaM aPaM(pD->GetNodes().GetEndOfContent(), SwNodeOffset(-1)); pD->SetInReading(true); + pD->SetInXMLImport(true); bool bRet = false; try { @@ -5677,6 +5678,7 @@ bool TestImportHTML(SvStream &rStream) catch (const std::out_of_range&) { } + pD->SetInXMLImport(false); pD->SetInReading(false); return bRet;
