[compiler-rt] r189748 - [ASan] Make blacklist test more robust

Alexey Samsonov samsonov at google.com
Mon Sep 2 02:17:51 PDT 2013


Author: samsonov
Date: Mon Sep  2 04:17:51 2013
New Revision: 189748

URL: http://llvm.org/viewvc/llvm-project?rev=189748&view=rev
Log:
[ASan] Make blacklist test more robust

Modified:
    compiler-rt/trunk/lib/asan/lit_tests/TestCases/blacklist.cc

Modified: compiler-rt/trunk/lib/asan/lit_tests/TestCases/blacklist.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/lit_tests/TestCases/blacklist.cc?rev=189748&r1=189747&r2=189748&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/lit_tests/TestCases/blacklist.cc (original)
+++ compiler-rt/trunk/lib/asan/lit_tests/TestCases/blacklist.cc Mon Sep  2 04:17:51 2013
@@ -12,8 +12,10 @@
 // RUN: %clangxx_asan -fsanitize-blacklist=%tmp -O3 %s -o %t \
 // RUN: %p/Helpers/blacklist-extra.cc && %t 2>&1
 
-// badGlobal is accessed improperly, but we blacklisted it.
-int badGlobal;
+// badGlobal is accessed improperly, but we blacklisted it. Align
+// it to make sure memory past the end of badGlobal will be in
+// the same page.
+__attribute__((aligned(16))) int badGlobal;
 int readBadGlobal() {
   return (&badGlobal)[1];
 }





More information about the llvm-commits mailing list