[webkit-changes] [WebKit/WebKit] 9c2efb: Enforce Safer C++ Checks across all WebKit projects

Brianna Fan noreply at github.com
Fri Dec 13 12:17:25 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 9c2efb9f553ee9cb3cea3d5b878a68a951c60c4a
      https://github.com/WebKit/WebKit/commit/9c2efb9f553ee9cb3cea3d5b878a68a951c60c4a
  Author: Brianna Fan <bfan2 at apple.com>
  Date:   2024-12-13 (Fri, 13 Dec 2024)

  Changed paths:
    A Source/JavaScriptCore/SaferCPPExpectations/MemoryUnsafeCastCheckerExpectations
    A Source/JavaScriptCore/SaferCPPExpectations/NoUncheckedPtrMemberCheckerExpectations
    A Source/JavaScriptCore/SaferCPPExpectations/NoUncountedMemberCheckerExpectations
    A Source/JavaScriptCore/SaferCPPExpectations/RefCntblBaseVirtualDtorExpectations
    A Source/JavaScriptCore/SaferCPPExpectations/UncheckedCallArgsCheckerExpectations
    A Source/JavaScriptCore/SaferCPPExpectations/UncheckedLocalVarsCheckerExpectations
    A Source/JavaScriptCore/SaferCPPExpectations/UncountedCallArgsCheckerExpectations
    A Source/JavaScriptCore/SaferCPPExpectations/UncountedLambdaCapturesCheckerExpectations
    A Source/JavaScriptCore/SaferCPPExpectations/UncountedLocalVarsCheckerExpectations
    A Source/WTF/SaferCPPExpectations/MemoryUnsafeCastCheckerExpectations
    A Source/WTF/SaferCPPExpectations/NoUncheckedPtrMemberCheckerExpectations
    A Source/WTF/SaferCPPExpectations/NoUncountedMemberCheckerExpectations
    A Source/WTF/SaferCPPExpectations/RefCntblBaseVirtualDtorExpectations
    A Source/WTF/SaferCPPExpectations/UncheckedCallArgsCheckerExpectations
    A Source/WTF/SaferCPPExpectations/UncheckedLocalVarsCheckerExpectations
    A Source/WTF/SaferCPPExpectations/UncountedCallArgsCheckerExpectations
    A Source/WTF/SaferCPPExpectations/UncountedLambdaCapturesCheckerExpectations
    A Source/WTF/SaferCPPExpectations/UncountedLocalVarsCheckerExpectations
    A Source/WebDriver/SaferCPPExpectations/MemoryUnsafeCastCheckerExpectations
    A Source/WebDriver/SaferCPPExpectations/NoUncheckedPtrMemberCheckerExpectations
    A Source/WebDriver/SaferCPPExpectations/NoUncountedMemberCheckerExpectations
    A Source/WebDriver/SaferCPPExpectations/RefCntblBaseVirtualDtorExpectations
    A Source/WebDriver/SaferCPPExpectations/UncheckedCallArgsCheckerExpectations
    A Source/WebDriver/SaferCPPExpectations/UncheckedLocalVarsCheckerExpectations
    A Source/WebDriver/SaferCPPExpectations/UncountedCallArgsCheckerExpectations
    A Source/WebDriver/SaferCPPExpectations/UncountedLambdaCapturesCheckerExpectations
    A Source/WebDriver/SaferCPPExpectations/UncountedLocalVarsCheckerExpectations
    A Source/WebGPU/SaferCPPExpectations/MemoryUnsafeCastCheckerExpectations
    A Source/WebGPU/SaferCPPExpectations/NoUncheckedPtrMemberCheckerExpectations
    A Source/WebGPU/SaferCPPExpectations/NoUncountedMemberCheckerExpectations
    A Source/WebGPU/SaferCPPExpectations/RefCntblBaseVirtualDtorExpectations
    A Source/WebGPU/SaferCPPExpectations/UncheckedCallArgsCheckerExpectations
    A Source/WebGPU/SaferCPPExpectations/UncheckedLocalVarsCheckerExpectations
    A Source/WebGPU/SaferCPPExpectations/UncountedCallArgsCheckerExpectations
    A Source/WebGPU/SaferCPPExpectations/UncountedLambdaCapturesCheckerExpectations
    A Source/WebGPU/SaferCPPExpectations/UncountedLocalVarsCheckerExpectations
    A Source/WebInspectorUI/SaferCPPExpectations/MemoryUnsafeCastCheckerExpectations
    A Source/WebInspectorUI/SaferCPPExpectations/NoUncheckedPtrMemberCheckerExpectations
    A Source/WebInspectorUI/SaferCPPExpectations/NoUncountedMemberCheckerExpectations
    A Source/WebInspectorUI/SaferCPPExpectations/RefCntblBaseVirtualDtorExpectations
    A Source/WebInspectorUI/SaferCPPExpectations/UncheckedCallArgsCheckerExpectations
    A Source/WebInspectorUI/SaferCPPExpectations/UncheckedLocalVarsCheckerExpectations
    A Source/WebInspectorUI/SaferCPPExpectations/UncountedCallArgsCheckerExpectations
    A Source/WebInspectorUI/SaferCPPExpectations/UncountedLambdaCapturesCheckerExpectations
    A Source/WebInspectorUI/SaferCPPExpectations/UncountedLocalVarsCheckerExpectations
    A Source/WebKitLegacy/SaferCPPExpectations/MemoryUnsafeCastCheckerExpectations
    A Source/WebKitLegacy/SaferCPPExpectations/NoUncheckedPtrMemberCheckerExpectations
    A Source/WebKitLegacy/SaferCPPExpectations/NoUncountedMemberCheckerExpectations
    A Source/WebKitLegacy/SaferCPPExpectations/RefCntblBaseVirtualDtorExpectations
    A Source/WebKitLegacy/SaferCPPExpectations/UncheckedCallArgsCheckerExpectations
    A Source/WebKitLegacy/SaferCPPExpectations/UncheckedLocalVarsCheckerExpectations
    A Source/WebKitLegacy/SaferCPPExpectations/UncountedCallArgsCheckerExpectations
    A Source/WebKitLegacy/SaferCPPExpectations/UncountedLambdaCapturesCheckerExpectations
    A Source/WebKitLegacy/SaferCPPExpectations/UncountedLocalVarsCheckerExpectations
    M Tools/CISupport/ews-build/steps.py
    M Tools/CISupport/ews-build/steps_unittest.py
    M Tools/Scripts/compare-static-analysis-results
    M Tools/Scripts/generate-dirty-files
    M Tools/Scripts/update-safer-cpp-expectations

  Log Message:
  -----------
  Enforce Safer C++ Checks across all WebKit projects
https://bugs.webkit.org/show_bug.cgi?id=284569
rdar://138123235

Reviewed by Ryosuke Niwa.

Enable Safer C++ Checks in JavaScriptCore, WebCore, WebDriver, WebGPU,
WebInspectorUI, WebKit, WebKitLegacy, and WTF.

* Tools/CISupport/ews-build/steps_unittest.py:
* Tools/Scripts/compare-static-analysis-results:
(find_diff):
(compare_project_results_to_expectations): Clean up logs when no unexpected results.
(compare_project_results_by_run): Ditto.
* Tools/Scripts/generate-dirty-files:
(find_project_results): Fix bug where files like WebGPU/WebGPU/APIConversions.h would
                        get truncated to an empty string.
(find_all_results): Fix whitespacing.

Updated expectations according to post-commit results:

* Source/JavaScriptCore/SaferCPPExpectations: Added.
* Source/WTF/SaferCPPExpectations: Added.
* Source/WebDriver/SaferCPPExpectations: Added.
* Source/WebGPU/SaferCPPExpectations: Added.
* Source/WebInspectorUI/SaferCPPExpectations: Added.
* Source/WebKitLegacy/SaferCPPExpectations: Added.

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