]> granicus.if.org Git - clang/commit
Add memcmp() and bcmp() to CStringChecker. These check for valid access to the buffer...
authorJordy Rose <jediknil@belkadan.com>
Wed, 7 Jul 2010 08:15:01 +0000 (08:15 +0000)
committerJordy Rose <jediknil@belkadan.com>
Wed, 7 Jul 2010 08:15:01 +0000 (08:15 +0000)
commitbc56d1f6e2288aea9546b2380c71288939d688ca
tree364d8e11e10bd36931d34518b7af63be270ceb0b
parent8f005a6931258bd0683ab0358b1a0959d6231421
Add memcmp() and bcmp() to CStringChecker. These check for valid access to the buffer arguments and have a special-case for when the buffer arguments are known to be the same address, or when the size is zero.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@107761 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Checker/CStringChecker.cpp
test/Analysis/bstring.c