diff options
author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2015-10-12 23:20:24 +0000 |
---|---|---|
committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2015-10-12 23:20:24 +0000 |
commit | 00ba8b29dc0d744529b98b34c698da437d354a6c (patch) | |
tree | f1ea0311f9858661c41118053fc3b80ada122438 /include | |
parent | 83eb8a52f9e739adfde4d248b5a985f37cc2325b (diff) |
[msan] Add __msan_copy_shadow interface function.
This can be used to annotate copies of memory that are not observed by MSan.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@250124 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/sanitizer/msan_interface.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/sanitizer/msan_interface.h b/include/sanitizer/msan_interface.h index 3d9bdc33d..6d6a37652 100644 --- a/include/sanitizer/msan_interface.h +++ b/include/sanitizer/msan_interface.h @@ -98,6 +98,12 @@ extern "C" { /* Deprecated. Call __sanitizer_set_death_callback instead. */ void __msan_set_death_callback(void (*callback)(void)); + /* Update shadow for the application copy of size bytes from src to dst. + Src and dst are application addresses. This function does not copy the + actual application memory, it only updates shadow and origin for such + copy. Source and destination regions can overlap. */ + void __msan_copy_shadow(const volatile void *dst, const volatile void *src, + size_t size); #ifdef __cplusplus } // extern "C" #endif |