[all-commits] [llvm/llvm-project] 0fffde: [-Wunsafe-buffer-usage] Warning Libc functions (#1...

Ziqing Luo via All-commits all-commits at lists.llvm.org
Wed Sep 4 12:35:06 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0fffdeb5f46078ddcc61e112cd38856b1165f050
      https://github.com/llvm/llvm-project/commit/0fffdeb5f46078ddcc61e112cd38856b1165f050
  Author: Ziqing Luo <ziqing at udel.edu>
  Date:   2024-09-04 (Wed, 04 Sep 2024)

  Changed paths:
    M clang/include/clang/Analysis/Analyses/UnsafeBufferUsage.h
    M clang/include/clang/Analysis/Analyses/UnsafeBufferUsageGadgets.def
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/lib/Analysis/UnsafeBufferUsage.cpp
    M clang/lib/Sema/AnalysisBasedWarnings.cpp
    A clang/test/SemaCXX/warn-unsafe-buffer-usage-libc-functions-inline-namespace.cpp
    A clang/test/SemaCXX/warn-unsafe-buffer-usage-libc-functions.cpp
    M clang/test/SemaCXX/warn-unsafe-buffer-usage-test-unreachable.cpp

  Log Message:
  -----------
  [-Wunsafe-buffer-usage] Warning Libc functions (#101583)

[-Wunsafe-buffer-usage] Add warn on unsafe calls to libc functions

Warning about calls to libc functions involving buffer access.  Warned
functions are hardcoded by names.

(rdar://117182250)



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