[compiler-rt] r214713 - [asan] poison array cookies only on 64-bit arch

Kostya Serebryany kcc at google.com
Mon Aug 4 05:59:45 PDT 2014


Author: kcc
Date: Mon Aug  4 07:59:45 2014
New Revision: 214713

URL: http://llvm.org/viewvc/llvm-project?rev=214713&view=rev
Log:
[asan] poison array cookies only on 64-bit arch

Modified:
    compiler-rt/trunk/lib/asan/asan_poisoning.cc

Modified: compiler-rt/trunk/lib/asan/asan_poisoning.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_poisoning.cc?rev=214713&r1=214712&r2=214713&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_poisoning.cc (original)
+++ compiler-rt/trunk/lib/asan/asan_poisoning.cc Mon Aug  4 07:59:45 2014
@@ -229,6 +229,7 @@ void __sanitizer_unaligned_store64(uu64
 
 extern "C" SANITIZER_INTERFACE_ATTRIBUTE
 void __asan_poison_cxx_array_cookie(uptr p) {
+  if (SANITIZER_WORDSIZE != 64) return;
   if (!flags()->poison_array_cookie) return;
   uptr s = MEM_TO_SHADOW(p);
   *reinterpret_cast<u8*>(s) = 0xac;





More information about the llvm-commits mailing list