summaryrefslogtreecommitdiffstats
path: root/compiler-rt/include
diff options
context:
space:
mode:
authorSergey Matveev <earthdok@google.com>2014-03-21 10:12:17 +0000
committerSergey Matveev <earthdok@google.com>2014-03-21 10:12:17 +0000
commitfa76f3b3a548319e11e083d586fcd6a124ee8a8d (patch)
tree7eb4a0536c283c23f4c512048babdd88678f5485 /compiler-rt/include
parent93679896c60b677a8307f8d387ef743730aff50b (diff)
downloadbcm5719-llvm-fa76f3b3a548319e11e083d586fcd6a124ee8a8d.tar.gz
bcm5719-llvm-fa76f3b3a548319e11e083d586fcd6a124ee8a8d.zip
[MSan] Add __msan_unpoison_string() to the public interface.
Using __msan_unpoison() on null-terminated strings is awkward because strlen() can't be called on a poisoned string. This case warrants a special interface function. llvm-svn: 204448
Diffstat (limited to 'compiler-rt/include')
-rw-r--r--compiler-rt/include/sanitizer/msan_interface.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler-rt/include/sanitizer/msan_interface.h b/compiler-rt/include/sanitizer/msan_interface.h
index 437fd02ae14..cefc11af7b5 100644
--- a/compiler-rt/include/sanitizer/msan_interface.h
+++ b/compiler-rt/include/sanitizer/msan_interface.h
@@ -38,6 +38,10 @@ extern "C" {
/* Make memory region fully initialized (without changing its contents). */
void __msan_unpoison(const volatile void *a, size_t size);
+ /* Make a null-terminated string fully initialized (without changing its
+ contents). */
+ void __msan_unpoison_string(const volatile char *a);
+
/* Make memory region fully uninitialized (without changing its contents). */
void __msan_poison(const volatile void *a, size_t size);
OpenPOWER on IntegriCloud