Title: [294164] trunk/Source/WebCore
Revision
294164
Author
commit-qu...@webkit.org
Date
2022-05-13 10:58:38 -0700 (Fri, 13 May 2022)

Log Message

-Wstringop-overflow warning in DocumentWriter.cpp
https://bugs.webkit.org/show_bug.cgi?id=239340

Patch by Michael Catanzaro <mcatanz...@gnome.org> on 2022-05-13
Reviewed by Chris Dumez.

* Source/WebCore/loader/DocumentWriter.cpp:
(WebCore::DocumentWriter::end):

Canonical link: https://commits.webkit.org/250533@main

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (294163 => 294164)


--- trunk/Source/WebCore/ChangeLog	2022-05-13 17:25:12 UTC (rev 294163)
+++ trunk/Source/WebCore/ChangeLog	2022-05-13 17:58:38 UTC (rev 294164)
@@ -1,3 +1,14 @@
+2022-05-13  Michael Catanzaro  <mcatanz...@redhat.com>
+
+        -Wstringop-overflow warning in DocumentWriter.cpp
+        https://bugs.webkit.org/show_bug.cgi?id=239340
+        <rdar://problem/93243931>
+
+        Reviewed by Chris Dumez.
+
+        * loader/DocumentWriter.cpp:
+        (WebCore::DocumentWriter::end):
+
 2022-05-13  Ziran Sun  <z...@igalia.com>
 
         input.showPicker() should throw when input is readonly/disabled

Modified: trunk/Source/WebCore/loader/DocumentWriter.cpp (294163 => 294164)


--- trunk/Source/WebCore/loader/DocumentWriter.cpp	2022-05-13 17:25:12 UTC (rev 294163)
+++ trunk/Source/WebCore/loader/DocumentWriter.cpp	2022-05-13 17:58:38 UTC (rev 294164)
@@ -296,7 +296,9 @@
     // http://bugs.webkit.org/show_bug.cgi?id=10854
     // The frame's last ref may be removed and it can be deleted by checkCompleted(), 
     // so we'll add a protective refcount
+IGNORE_GCC_WARNINGS_BEGIN("stringop-overflow")
     Ref<Frame> protect(*m_frame);
+IGNORE_GCC_WARNINGS_END
 
     if (!m_parser)
         return;
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to