[PATCH] D17129: [Compiler-rt][MSan] fix param_tls_limit test

Evgeniy Stepanov via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 26 12:39:57 PST 2016


eugenis added inline comments.

================
Comment at: test/msan/param_tls_limit.cc:29
@@ +28,3 @@
+// considered poisoned till tls limit 
+#define PARTIAL_OVERFLOW(x) assert(__msan_test_shadow(&x + 800/*kMsanParamTlsSize*/, 1) == -1)
+#endif
----------------
800 in "&x + 800" would be 800 * sizeof(x).

something like this to test the last byte of x: (char *)(&(x)  + 1)  - 1


Repository:
  rL LLVM

http://reviews.llvm.org/D17129





More information about the llvm-commits mailing list