Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 3c908c67e15d5ddba8e8e8678e35d04e510f236b
      
https://github.com/WebKit/WebKit/commit/3c908c67e15d5ddba8e8e8678e35d04e510f236b
  Author: Geoffrey Garen <gga...@apple.com>
  Date:   2025-01-31 (Fri, 31 Jan 2025)

  Changed paths:
    M Tools/Scripts/webkitpy/style/checkers/cpp.py
    M Tools/Scripts/webkitpy/style/checkers/cpp_unittest.py

  Log Message:
  -----------
  Added a style checker for SAFE_PRINTF
https://bugs.webkit.org/show_bug.cgi?id=286826
rdar://143980601

Reviewed by Chris Dumez.

Forbid use of printf, fprintf, snprintf because %s is not bounds safe, and an
upcoming compiler will turn this into an error. (sprintf was already forbidden.)

Update existing format string checkers to check SAFE_PRINTF format strings.

* Tools/Scripts/webkitpy/style/checkers/cpp.py:
(check_for_non_standard_constructs):
(check_safer_cpp):
(check_language):
(CppChecker):
* Tools/Scripts/webkitpy/style/checkers/cpp_unittest.py:
(CppStyleTest):
(WebKitStyleTest.test_safer_cpp):

Canonical link: https://commits.webkit.org/289642@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to