[webkit-changes] [WebKit/WebKit] e6d184: Drop use of WTF_ALLOW_UNSAFE_BUFFER_USAGE in WebKi...

Chris Dumez noreply at github.com
Sun Feb 2 11:21:16 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: e6d184dc1aaa1b74bf09137c0b228f008a18ad49
      https://github.com/WebKit/WebKit/commit/e6d184dc1aaa1b74bf09137c0b228f008a18ad49
  Author: Chris Dumez <cdumez at apple.com>
  Date:   2025-02-02 (Sun, 02 Feb 2025)

  Changed paths:
    M Source/WTF/WTF.xcodeproj/project.pbxproj
    M Source/WTF/wtf/StdLibExtras.h
    A Source/WTF/wtf/cocoa/NSStringExtras.h
    M Source/WebKit/webpushd/webpushtool/WebPushToolConnection.mm
    M Source/WebKit/webpushd/webpushtool/WebPushToolMain.mm

  Log Message:
  -----------
  Drop use of WTF_ALLOW_UNSAFE_BUFFER_USAGE in WebKit/webpushd/webpushtool
https://bugs.webkit.org/show_bug.cgi?id=286879

Reviewed by Geoffrey Garen.

* Source/WTF/WTF.xcodeproj/project.pbxproj:
* Source/WTF/wtf/StdLibExtras.h:
Make SAFE_PRINTF macros work even when there are not parameters, due to
the format string not having any formatters.

* Source/WTF/wtf/cocoa/NSStringExtras.h: Added.
(WTF::safePrintfType):
Allow passing a `NSString *` to SAFE_PRINTF macros.

* Source/WebKit/webpushd/webpushtool/WebPushToolConnection.mm:
(WebPushTool::Connection::sendAuditToken):
* Source/WebKit/webpushd/webpushtool/WebPushToolMain.mm:
(printUsageAndTerminate):
Adopt SAFE_PRINTF macros.

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



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


More information about the webkit-changes mailing list