[PATCH] [MSan] Add __msan_unpoison_string() to the public interface.
Evgeniy Stepanov
eugenis at google.com
Thu Mar 20 23:53:18 PDT 2014
LGTM w/ comments
================
Comment at: test/msan/unpoison_string.cc:12
@@ +11,3 @@
+ char s[20] = "string";
+ __msan_poison(s, 20 * sizeof(char));
+ __msan_unpoison_string(s);
----------------
sizeof(s) here and below
================
Comment at: test/msan/unpoison_string.cc:14
@@ +13,3 @@
+ __msan_unpoison_string(s);
+ assert(__msan_test_shadow(s, 20 * sizeof(char)) == strlen("string") + 1);
+}
----------------
return 0 at the end!
http://llvm-reviews.chandlerc.com/D3135
BRANCH
msan/unpoison_string
ARCANIST PROJECT
compiler-rt
More information about the llvm-commits
mailing list