[compiler-rt] r246602 - CFI: Add blacklist entries for various standard library functions.

Peter Collingbourne via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 1 16:00:56 PDT 2015


Author: pcc
Date: Tue Sep  1 18:00:56 2015
New Revision: 246602

URL: http://llvm.org/viewvc/llvm-project?rev=246602&view=rev
Log:
CFI: Add blacklist entries for various standard library functions.

Modified:
    compiler-rt/trunk/lib/cfi/cfi_blacklist.txt

Modified: compiler-rt/trunk/lib/cfi/cfi_blacklist.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/cfi/cfi_blacklist.txt?rev=246602&r1=246601&r2=246602&view=diff
==============================================================================
--- compiler-rt/trunk/lib/cfi/cfi_blacklist.txt (original)
+++ compiler-rt/trunk/lib/cfi/cfi_blacklist.txt Tue Sep  1 18:00:56 2015
@@ -6,3 +6,21 @@ type:stdext::*
 
 # Types with a uuid attribute, i.e. COM types.
 type:attr:uuid
+
+# STL allocators (T *allocator<T *>::allocate(size_type, const void*)).
+# The type signature mandates a cast from uninitialized void* to T*.
+# size_type can either be unsigned int (j) or unsigned long (m).
+fun:*8allocateEjPKv
+fun:*8allocateEmPKv
+
+# std::get_temporary_buffer, likewise (libstdc++, libc++).
+fun:_ZSt20get_temporary_buffer*
+fun:_ZNSt3__120get_temporary_buffer*
+
+# STL address-of magic (libstdc++, libc++).
+fun:*__addressof*
+fun:_ZNSt3__19addressof*
+
+# Windows C++ stdlib headers that contain bad unrelated casts.
+src:*xmemory0
+src:*xstddef




More information about the llvm-commits mailing list