summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/cfi-vptr.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Implement CFI type checks for non-virtual calls.Peter Collingbourne2015-04-021-74/+0
| | | | | | | | | | | | This uses the same class metadata currently used for virtual call and cast checks. The new flag is -fsanitize=cfi-nvcall. For consistency, the -fsanitize=cfi-vptr flag has been renamed -fsanitize=cfi-vcall. Differential Revision: http://reviews.llvm.org/D8756 llvm-svn: 233874
* Implement Control Flow Integrity for virtual calls.Peter Collingbourne2015-02-201-0/+74
This patch introduces the -fsanitize=cfi-vptr flag, which enables a control flow integrity scheme that checks that virtual calls take place using a vptr of the correct dynamic type. More details in the new docs/ControlFlowIntegrity.rst file. It also introduces the -fsanitize=cfi flag, which is currently a synonym for -fsanitize=cfi-vptr, but will eventually cover all CFI checks implemented in Clang. Differential Revision: http://reviews.llvm.org/D7424 llvm-svn: 230055
OpenPOWER on IntegriCloud