]> granicus.if.org Git - clang/commit
CastSizeChecker checks when casting a malloc'ed symbolic region to type T,
authorZhongxing Xu <xuzhongxing@gmail.com>
Tue, 25 May 2010 04:59:19 +0000 (04:59 +0000)
committerZhongxing Xu <xuzhongxing@gmail.com>
Tue, 25 May 2010 04:59:19 +0000 (04:59 +0000)
commitab28099e3bd4859585ccb316f9f571c8c6b035fd
tree05ff6fcba2bd6c55f36d951ad126cda96bb477bd
parent8b2423361648c39a7d8a3c5e8129e12006deac32
CastSizeChecker checks when casting a malloc'ed symbolic region to type T,
whether the size of the symbolic region is a multiple of the size of T.
Fixes PR6123 and PR7217.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104584 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Checker/PathSensitive/Store.h
lib/Checker/CMakeLists.txt
lib/Checker/CastSizeChecker.cpp [new file with mode: 0644]
lib/Checker/GRExprEngineExperimentalChecks.cpp
lib/Checker/GRExprEngineInternalChecks.h
lib/Checker/RegionStore.cpp
test/Analysis/malloc.c