[Webkit-unassigned] [Bug 274780] [GTK] Crash in WebCore::TextDecorationPainter::paintBackgroundDecorations when compiled with Clang with LTO enabled

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Aug 14 15:27:22 PDT 2024


https://bugs.webkit.org/show_bug.cgi?id=274780

--- Comment #17 from Adrian Perez <aperez at igalia.com> ---
I have arrived to a smaller workaround/fix:

diff --git a/Source/WebCore/rendering/TextDecorationPainter.cpp b/Source/WebCore/rendering/TextDecorationPainter.cpp
index 5c4e798d7aef..6c3951145f30 100644
--- a/Source/WebCore/rendering/TextDecorationPainter.cpp
+++ b/Source/WebCore/rendering/TextDecorationPainter.cpp
@@ -141,7 +141,7 @@ static DashArray translateIntersectionPointsToSkipInkBoundaries(const DashArray&
                 intermediateTuples.append(*i);
         }
     } else
-        intermediateTuples = tuples;
+        intermediateTuples.swap(tuples);

     // Step 3: Output the space between the ranges, but only if the space warrants an underline.
     float previous = 0;

What do we think about this? ��

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240814/4a3ef63e/attachment-0001.htm>


More information about the webkit-unassigned mailing list