Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: de5bceefeabdceb7f0b7c7248abfef9636dc2198
      
https://github.com/WebKit/WebKit/commit/de5bceefeabdceb7f0b7c7248abfef9636dc2198
  Author: Adrian Perez de Castro <[email protected]>
  Date:   2025-12-11 (Thu, 11 Dec 2025)

  Changed paths:
    M Source/WebKit/UIProcess/API/glib/WebKitUserContentFilterStore.cpp

  Log Message:
  -----------
  [GLib] Drop WTF_ALLOW_UNSAFE_BUFFER_USAGE in WebKitUserContentFilterStore.cpp
https://bugs.webkit.org/show_bug.cgi?id=303869

Reviewed by Michael Catanzaro.

* Source/WebKit/UIProcess/API/glib/WebKitUserContentFilterStore.cpp:
(webkit_user_content_filter_store_fetch_identifiers): Replace memory
allocation for the function result with GMallocSpan::malloc(), bringing
in bounds-checking. While at it, use checked arithmetic to calculate
the size of the allocation and handle overflows. Lastly, switch from
g_strdup() to g_strndup() to avoid an unneeded strlen() call for each
identifier copied into the result set.

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to