| commit | d2926c91d5135a95912fdc142d133b647668e918 | [log] [tgz] |
|---|---|---|
| author | Peter Collingbourne <peter@pcc.me.uk> | Sat Mar 14 02:42:25 2015 +0000 |
| committer | Peter Collingbourne <peter@pcc.me.uk> | Sat Mar 14 02:42:25 2015 +0000 |
| tree | 671323e883dc8608d2382a0d9aa8e1d9858485ab | |
| parent | 741c8f81e469930b7c72a59c82adae12c933b1e2 [diff] |
Implement bad cast checks using control flow integrity information. This scheme checks that pointer and lvalue casts are made to an object of the correct dynamic type; that is, the dynamic type of the object must be a derived class of the pointee type of the cast. The checks are currently only introduced where the class being casted to is a polymorphic class. Differential Revision: http://reviews.llvm.org/D8312 llvm-svn: 232241