[webkit-changes] [WebKit/WebKit] c570b4: Drop use of WTF_ALLOW_UNSAFE_BUFFER_USAGE in Space...

Chris Dumez noreply at github.com
Sat Feb 8 09:29:50 PST 2025


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

  Changed paths:
    M Source/WebCore/SaferCPPExpectations/MemoryUnsafeCastCheckerExpectations
    M Source/WebCore/dom/SpaceSplitString.h

  Log Message:
  -----------
  Drop use of WTF_ALLOW_UNSAFE_BUFFER_USAGE in SpaceSplitString.h
https://bugs.webkit.org/show_bug.cgi?id=287311

Reviewed by Geoffrey Garen.

Drop WTF_ALLOW_UNSAFE_BUFFER_USAGE in SpaceSplitString.h by introducing a
flexible array member to avoid pointer arithmetics.

This tested as performance neutral on the benchmarks we track.

* Source/WebCore/dom/SpaceSplitString.h:
(WebCore::SpaceSplitStringData::tokenArray):
(WebCore::SpaceSplitStringData::tokenArray const):

Canonical link: https://commits.webkit.org/290089@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