]> granicus.if.org Git - clang/commit
[analyzer] Turn on by default the Malloc Checker and a couple of CString
authorAnna Zaks <ganna@apple.com>
Mon, 20 Feb 2012 21:10:37 +0000 (21:10 +0000)
committerAnna Zaks <ganna@apple.com>
Mon, 20 Feb 2012 21:10:37 +0000 (21:10 +0000)
commitbb2a6864f111e13f7905725963649c60c60bf18b
treef9d0fa421eb8ea4233564d40dd2e67151796a626
parentfa07ab57eb565b4a00712adcefb29d96b445bfcd
[analyzer] Turn on by default the Malloc Checker and a couple of CString
checks:

- unix.Malloc - Checks for memory leaks, double free, use-after-free.
- unix.cstring.NullArg - Checks for null pointers passed as arguments to
CString functions + evaluates CString functions.
- unix.cstring.BadSizeArg - Checks for common anti-patterns in
strncat size argument.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150988 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Checkers/Checkers.td
test/Analysis/additive-folding.c
test/Analysis/bstring.c
test/Analysis/cstring-syntax-cxx.cpp
test/Analysis/cstring-syntax.c
test/Analysis/free.c
test/Analysis/malloc-plist.c
test/Analysis/malloc.c
test/Analysis/malloc.mm
test/Analysis/string.c