]> granicus.if.org Git - clang/commit
initial support for checking format strings, patch by Ted Kremenek:
authorChris Lattner <sabre@nondot.org>
Fri, 10 Aug 2007 20:18:51 +0000 (20:18 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 10 Aug 2007 20:18:51 +0000 (20:18 +0000)
commit59907c4d8f6fc8aacfdaa0273bd7a9c140fbb45f
tree4711e49c7f24d8b8d4a18d0ffa00e0bdc02aa704
parentaf6f528b2bd6c3ee517e02d346238addb74159cc
initial support for checking format strings, patch by Ted Kremenek:

"I've coded up some support in clang to flag warnings for non-constant format strings used in calls to printf-like functions (all the functions listed in "man fprintf").  Non-constant format strings are a source of many security exploits in C/C++ programs, and I believe are currently detected by gcc using the flag -Wformat-nonliteral."

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41003 91177308-0d34-0410-b5e6-96231b3b80d8
Sema/Sema.cpp
Sema/Sema.h
Sema/SemaChecking.cpp [new file with mode: 0644]
Sema/SemaExpr.cpp
clang.xcodeproj/project.pbxproj
include/clang/Basic/DiagnosticKinds.def
test/Sema/format-strings.c [new file with mode: 0644]