[PATCH] Implement bad cast checks using control flow integrity information.

Kostya Serebryany kcc at google.com
Fri Mar 13 12:47:34 PDT 2015


Please also add compiler-rt test(s)


================
Comment at: docs/UsersManual.rst:971
@@ -970,1 +970,3 @@
       where the array bound can be statically determined.
+   -  ``-fsanitize=cfi-dcast``: Base-to-derived cast to the wrong
+      dynamic type. Implies ``-flto``.
----------------
Don't we want more verbose names? 
cfi-polymorphic-base-downcast 
cfi-void-to-polymorphic-cast
 or something.

http://reviews.llvm.org/D8312

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the cfe-commits mailing list