]> granicus.if.org Git - clang/commit
[UBSan] Introduce type-based blacklisting.
authorAlexey Samsonov <vonosmas@gmail.com>
Thu, 10 Jul 2014 22:34:19 +0000 (22:34 +0000)
committerAlexey Samsonov <vonosmas@gmail.com>
Thu, 10 Jul 2014 22:34:19 +0000 (22:34 +0000)
commit5e571386f7b17a0c23903950657151cab92a9518
tree440a2030440ff4e86ac4ea8b85e11535586304a3
parent2b1d5099e074dfd13e52fee49f7bd0059a4b7fc2
[UBSan] Introduce type-based blacklisting.

Teach UBSan vptr checker to ignore technically invalud down-casts on
blacklisted types.

Based on http://reviews.llvm.org/D4407 by Byoungyoung Lee!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@212770 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGExpr.cpp
lib/CodeGen/SanitizerBlacklist.cpp
lib/CodeGen/SanitizerBlacklist.h
test/CodeGen/ubsan-type-blacklist.cpp [new file with mode: 0644]