summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>2013-01-28 13:52:49 +0000
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>2013-01-28 13:52:49 +0000
commit887a5feeb59a515e2fc291ceb8451dc569936124 (patch)
treef9b47511a107371809e7224781dc4f817c51f85b /include
parentf1d9fddaf2611dcb655dbf38d2b3e7e1171ac9e9 (diff)
downloadcompiler-rt-887a5feeb59a515e2fc291ceb8451dc569936124.tar.gz
compiler-rt-887a5feeb59a515e2fc291ceb8451dc569936124.tar.bz2
compiler-rt-887a5feeb59a515e2fc291ceb8451dc569936124.tar.xz
[msan] A runtime call to support custom allocators.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@173687 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/sanitizer/msan_interface.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/sanitizer/msan_interface.h b/include/sanitizer/msan_interface.h
index 1a76dd60..601dba16 100644
--- a/include/sanitizer/msan_interface.h
+++ b/include/sanitizer/msan_interface.h
@@ -117,6 +117,11 @@ const char *__msan_get_origin_descr_if_stack(u32 id);
SANITIZER_INTERFACE_ATTRIBUTE
void __msan_partial_poison(void* data, void* shadow, uptr size);
+// Tell MSan about newly allocated memory (ex.: custom allocator).
+// Memory will be marked uninitialized, with origin at the call site.
+SANITIZER_INTERFACE_ATTRIBUTE
+void __msan_allocated_memory(void* data, uptr size);
+
#ifdef __cplusplus
} // extern "C"
#endif