[webkit-changes] [WebKit/WebKit] af8b94: Workaround false negatives with types which inheri...

Ryosuke Niwa noreply at github.com
Fri Oct 18 16:40:50 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: af8b9437ca6003e972f6b0a40416b5b92bbfbfd8
      https://github.com/WebKit/WebKit/commit/af8b9437ca6003e972f6b0a40416b5b92bbfbfd8
  Author: Ryosuke Niwa <rniwa at webkit.org>
  Date:   2024-10-18 (Fri, 18 Oct 2024)

  Changed paths:
    M Source/WTF/wtf/AbstractRefCountedAndCanMakeWeakPtr.h
    M Source/WebCore/SaferCPPExpectations/UncountedCallArgsCheckerExpectations
    M Source/WebKit/SaferCPPExpectations/UncountedCallArgsCheckerExpectations
    M Source/WebKit/SaferCPPExpectations/UncountedLocalVarsCheckerExpectations

  Log Message:
  -----------
  Workaround false negatives with types which inherit from AbstractRefCountedAndCanMakeWeakPtr
https://bugs.webkit.org/show_bug.cgi?id=281709

Reviewed by Geoffrey Garen.

Re-define ref() and deref() in AbstractRefCountedAndCanMakeWeakPtr and
AbstractRefCountedAndCanMakeSingleThreadWeakPtr directly to workaround the bug in
the clang static analyzer.

* Source/WTF/wtf/AbstractRefCountedAndCanMakeWeakPtr.h:
* Source/WebCore/SaferCPPExpectations/UncountedCallArgsCheckerExpectations:
* Source/WebKit/SaferCPPExpectations/UncountedCallArgsCheckerExpectations:
* Source/WebKit/SaferCPPExpectations/UncountedLocalVarsCheckerExpectations:

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