[webkit-changes] [WebKit/WebKit] ba51d8: SharedBuffer: mark forEachSegment function's funct...

Claudio Saavedra noreply at github.com
Fri Jan 31 22:27:07 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: ba51d82297c487e1639b60cfebfc71ee7b76fa01
      https://github.com/WebKit/WebKit/commit/ba51d82297c487e1639b60cfebfc71ee7b76fa01
  Author: Claudio Saavedra <csaavedra at igalia.com>
  Date:   2025-01-31 (Fri, 31 Jan 2025)

  Changed paths:
    M Source/WebCore/platform/SharedBuffer.cpp
    M Source/WebCore/platform/SharedBuffer.h
    M Source/WebKit/SaferCPPExpectations/UncountedLambdaCapturesCheckerExpectations

  Log Message:
  -----------
  SharedBuffer: mark forEachSegment function's functor parameter as NOESCAPE
https://bugs.webkit.org/show_bug.cgi?id=286802

Reviewed by Chris Dumez.

These methods run synchronously, marking the parameter as NOESCAPE will
likely get rid of many unsafe lambda usage static analyzer warnings.

* Source/WebCore/platform/SharedBuffer.cpp:
(WebCore::FragmentedSharedBuffer::forEachSegment const):
(WebCore::FragmentedSharedBuffer::forEachSegmentAsSharedBuffer const):
* Source/WebCore/platform/SharedBuffer.h:
* Source/WebKit/SaferCPPExpectations/UncountedLambdaCapturesCheckerExpectations:

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