[all-commits] [llvm/llvm-project] 6d1d05: [-Wunsafe-buffer-usage] Add warnings for unsafe bu...
Ziqing Luo via All-commits
all-commits at lists.llvm.org
Fri Dec 16 17:42:35 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 6d1d055fad502e0751d59c31ca915737b73e002f
https://github.com/llvm/llvm-project/commit/6d1d055fad502e0751d59c31ca915737b73e002f
Author: ziqingluo-90 <ziqing at udel.edu>
Date: 2022-12-16 (Fri, 16 Dec 2022)
Changed paths:
M clang/include/clang/Analysis/Analyses/UnsafeBufferUsageGadgets.def
M clang/lib/Analysis/UnsafeBufferUsage.cpp
M clang/test/SemaCXX/warn-unsafe-buffer-usage.cpp
Log Message:
-----------
[-Wunsafe-buffer-usage] Add warnings for unsafe buffer accesses by array subscript operations
Add an unsafe Gadget in the Unsafe Buffer Usage anslysis to represent
(and search (via matchers) for) unsafe buffer-accessing array subscript operations.
Reviewed By: NoQ, jkorous, aaron.ballman, xazax.hun
Differential Revision: https://reviews.llvm.org/D137379
More information about the All-commits
mailing list