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

  Changed paths:
    M Source/WTF/wtf/glib/SocketConnection.cpp
    M Source/WTF/wtf/glib/SocketConnection.h

  Log Message:
  -----------
  [GLib] Drop WTF_ALLOW_UNSAFE_BUFFER_USAGE in SocketConnection::sendMessage()
https://bugs.webkit.org/show_bug.cgi?id=302780

Reviewed by Michael Catanzaro.

Rewrite SocketConnection::sendMessage() to use spans and their helper
functions to prepare messages for sending. As a bonus, its structure now
follows that of ::readMessage(), making it easier to understand both as
a whole.

* Source/WTF/wtf/glib/SocketConnection.cpp:
(WTF::SocketConnection::readMessage): Hoist {Mini,Maxi}mumMessageBodySize to
global scope, to reuse the definitions in SocketConnection::sendMessage().
(WTF::SocketConnection::sendMessage):
* Source/WTF/wtf/glib/SocketConnection.h: Change parameter declaration to
use CString instead of a raw string pointer.

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



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

Reply via email to