[all-commits] [llvm/llvm-project] a7e531: [alpha.webkit.UncheckedCallArgsChecker] Checker fa...

Vitaly Buka via All-commits all-commits at lists.llvm.org
Thu Apr 24 13:16:57 PDT 2025


  Branch: refs/heads/users/vitalybuka/spr/drivercfi-allow-cfi-with-minimal-runtime
  Home:   https://github.com/llvm/llvm-project
  Commit: a7e53124eb1376b0f04a1f6d7d40a596532905b6
      https://github.com/llvm/llvm-project/commit/a7e53124eb1376b0f04a1f6d7d40a596532905b6
  Author: Ryosuke Niwa <rniwa at webkit.org>
  Date:   2025-04-24 (Thu, 24 Apr 2025)

  Changed paths:
    M clang/lib/StaticAnalyzer/Checkers/WebKit/PtrTypesSemantics.cpp
    A clang/test/Analysis/Checkers/WebKit/unchecked-call-arg.cpp

  Log Message:
  -----------
  [alpha.webkit.UncheckedCallArgsChecker] Checker fails to recognize CanMakeCheckedPtrBase (#136500)

This PR fixes the bug that alpha.webkit.UncheckedCallArgsChecker did not
recognize CanMakeCheckedPtrBase due to getAsCXXRecordDecl returning
nullptr for it in hasPublicMethodInBase. Manually grab getTemplatedDecl
out of TemplateSpecializationType then CXXRecordDecl to workaround this
bug in clang frontend.


  Commit: f4621d702f68df0fd067ead05f9a0367dc80e7c3
      https://github.com/llvm/llvm-project/commit/f4621d702f68df0fd067ead05f9a0367dc80e7c3
  Author: Vitaly Buka <vitalybuka at google.com>
  Date:   2025-04-24 (Thu, 24 Apr 2025)

  Changed paths:
    M clang/lib/StaticAnalyzer/Checkers/WebKit/PtrTypesSemantics.cpp
    A clang/test/Analysis/Checkers/WebKit/unchecked-call-arg.cpp

  Log Message:
  -----------
  rebase

Created using spr 1.3.4


Compare: https://github.com/llvm/llvm-project/compare/db0fcc499c1a...f4621d702f68

To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list