]> granicus.if.org Git - clang/commit
[analyzer] pr34779: CStringChecker: Accept non-standard headers.
authorArtem Dergachev <artem.dergachev@gmail.com>
Tue, 7 Nov 2017 10:51:15 +0000 (10:51 +0000)
committerArtem Dergachev <artem.dergachev@gmail.com>
Tue, 7 Nov 2017 10:51:15 +0000 (10:51 +0000)
commit8ab0d100c3892fab13cfdf473671414ff7642925
tree78fa760805ac9b291b0f657dd9ccbddcff5d7efd
parent748ac787214a585e4fd7b5de94f564b9310e43d4
[analyzer] pr34779: CStringChecker: Accept non-standard headers.

Do not crash when trying to define and call a non-standard
strcpy(unsigned char *, unsigned char *) during analysis.

At the same time, do not try to actually evaluate the call.

Differential Revision: https://reviews.llvm.org/D39422

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@317565 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Checkers/CStringChecker.cpp
test/Analysis/string-with-signedness.c [new file with mode: 0644]