[webkit-changes] [WebKit/WebKit] e36a18: WTF::StringImpl::createSubstringSharingImpl() shou...

Commit Queue noreply at github.com
Tue Oct 22 18:32:18 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: e36a18c8923023ca9f2084ac89c20e4d44c22077
      https://github.com/WebKit/WebKit/commit/e36a18c8923023ca9f2084ac89c20e4d44c22077
  Author: David Kilzer <ddkilzer at apple.com>
  Date:   2024-10-22 (Tue, 22 Oct 2024)

  Changed paths:
    M Source/WTF/wtf/text/StringImpl.h

  Log Message:
  -----------
  WTF::StringImpl::createSubstringSharingImpl() should use std::span instead of pointer math
<https://bugs.webkit.org/show_bug.cgi?id=281917>
<rdar://138429112>

Reviewed by Chris Dumez.

* Source/WTF/wtf/text/StringImpl.h:
(WTF::StringImpl::createSubstringSharingImpl):
- Replace pointer math with calls to span8()/span16() and
  std::span::subspan() for bounds safety checks.

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