summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2015-06-19 01:51:54 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2015-06-19 01:51:54 +0000
commit6708c4a1767d44a4d25938b07f8f144a906fb411 (patch)
treea669e81facf705913b7aadb42b0e112be99a6557 /clang/lib/Analysis
parent2a567835d1a77150634800247c864f12ca836f2b (diff)
downloadbcm5719-llvm-6708c4a1767d44a4d25938b07f8f144a906fb411.tar.gz
bcm5719-llvm-6708c4a1767d44a4d25938b07f8f144a906fb411.zip
Implement diagnostic mode for -fsanitize=cfi*, -fsanitize=cfi-diag.
This causes programs compiled with this flag to print a diagnostic when a control flow integrity check fails instead of aborting. Diagnostics are printed using UBSan's runtime library. The main motivation of this feature over -fsanitize=vptr is fidelity with the -fsanitize=cfi implementation: the diagnostics are printed under exactly the same conditions as those which would cause -fsanitize=cfi to abort the program. This means that the same restrictions apply regarding compiling all translation units with -fsanitize=cfi, cross-DSO virtual calls are forbidden, etc. Differential Revision: http://reviews.llvm.org/D10268 llvm-svn: 240109
Diffstat (limited to 'clang/lib/Analysis')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud