]> granicus.if.org Git - clang/commit
[analyzer] Provide a check name when MallocChecker enables CStringChecker
authorDevin Coughlin <dcoughlin@apple.com>
Sat, 20 Jan 2018 23:11:17 +0000 (23:11 +0000)
committerDevin Coughlin <dcoughlin@apple.com>
Sat, 20 Jan 2018 23:11:17 +0000 (23:11 +0000)
commit23a20415d5f95650e2e51200580ca97f2df1061c
tree223cea6082e90242e1bdc18e33c100fae8211a07
parent85e59a0ad996e7918f65a892cba9ad7b28cac09c
[analyzer] Provide a check name when MallocChecker enables CStringChecker

Fix an assertion failure caused by a missing CheckName. The malloc checker
enables "basic" support in the CStringChecker, which causes some CString
bounds checks to be enabled. In this case, make sure that we have a
valid CheckName for the BugType.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@323052 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Checkers/CStringChecker.cpp
test/Analysis/Inputs/system-header-simulator.h
test/Analysis/malloc.c