]> granicus.if.org Git - clang/commit
[analyzer] Don't crash even when the system functions are redefined.
authorAnna Zaks <ganna@apple.com>
Tue, 10 Apr 2012 23:41:11 +0000 (23:41 +0000)
committerAnna Zaks <ganna@apple.com>
Tue, 10 Apr 2012 23:41:11 +0000 (23:41 +0000)
commit259052d8c819d101f6f627f960f56e582ecbcebc
tree8860bc0206122a15fe4f6d4e23638a86371ed3a4
parente1b2abc2ed3f2c98985b06b4ad01c977bd584020
[analyzer] Don't crash even when the system functions are redefined.
(Applied changes to CStringAPI, Malloc, and Taint.)

This might almost never happen, but we should not crash even if it does.
This fixes a crash on the internal analyzer buildbot, where postgresql's
configure was redefining memmove (radar://11219852).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154451 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Checkers/CStringChecker.cpp
lib/StaticAnalyzer/Checkers/GenericTaintChecker.cpp
lib/StaticAnalyzer/Checkers/MallocChecker.cpp