]> granicus.if.org Git - clang/commit
Add an experimental MallocSizeofChecker, which reports inconsistencies
authorPeter Collingbourne <peter@pcc.me.uk>
Thu, 8 Dec 2011 08:31:14 +0000 (08:31 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Thu, 8 Dec 2011 08:31:14 +0000 (08:31 +0000)
commitdc30967a4633186782e0e204c65dba2552301ec9
tree3cf88e20ef0271a4fb26a841b06b126619706f31
parent2e55df49929a515b05f3af89b47a13357eccd9d0
Add an experimental MallocSizeofChecker, which reports inconsistencies
between the casted type of the return value of a malloc/calloc/realloc
call and the operand of any sizeof expressions contained within
its argument(s).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146144 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Checkers/CMakeLists.txt
lib/StaticAnalyzer/Checkers/Checkers.td
lib/StaticAnalyzer/Checkers/MallocSizeofChecker.cpp [new file with mode: 0644]
test/Analysis/malloc-sizeof.c [new file with mode: 0644]