[Webkit-unassigned] [Bug 282095] New: [GTK] Use std::array and ASCIILiteral in DropTargetGtk4.cpp

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Oct 25 07:44:37 PDT 2024


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

            Bug ID: 282095
           Summary: [GTK] Use std::array and ASCIILiteral in
                    DropTargetGtk4.cpp
           Product: WebKit
           Version: WebKit Local Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKitGTK
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: aperez at igalia.com
                CC: bugs-noreply at webkitgtk.org

We could use std::array in the constant arrays in holding MIME type
strings in Source/WebKit/UIProcess/API/gtk/DropTargetGtk4.cpp; to try
and to remove WTF_ALLOW_UNSAFE_BUFFER_USAGE_{BEGIN,END} usage.

While at it, each item in these arrays could be an ASCIILiteral to
avoid using GLib functions like g_strv_contains() that don't do
bounds checking.

-- 
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/20241025/8d6f3561/attachment-0001.htm>


More information about the webkit-unassigned mailing list