summaryrefslogtreecommitdiffstats
path: root/compiler-rt/include
diff options
context:
space:
mode:
authorMatt Morehouse <mascasa@google.com>2019-05-09 21:50:57 +0000
committerMatt Morehouse <mascasa@google.com>2019-05-09 21:50:57 +0000
commita612b5adb7a63b10736134cb7b8e70f1614883be (patch)
treec1c8b4c7f19936b7b65dafc662a7c49fdc3f20d9 /compiler-rt/include
parente9aaa5582fa164e8fbcf819c672c02f5f5448e6c (diff)
downloadbcm5719-llvm-a612b5adb7a63b10736134cb7b8e70f1614883be.tar.gz
bcm5719-llvm-a612b5adb7a63b10736134cb7b8e70f1614883be.zip
[MSan] Introduce __msan_unpoison_param().
Summary: This allows libFuzzer to unpoison parameter shadow before calling LLVMFuzzerTestOneInput to eliminate the false positives described in https://github.com/google/oss-fuzz/issues/2369. Reviewers: eugenis Reviewed By: eugenis Subscribers: llvm-commits, metzman, kcc Tags: #llvm Differential Revision: https://reviews.llvm.org/D61751 llvm-svn: 360379
Diffstat (limited to 'compiler-rt/include')
-rw-r--r--compiler-rt/include/sanitizer/msan_interface.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler-rt/include/sanitizer/msan_interface.h b/compiler-rt/include/sanitizer/msan_interface.h
index 5c5363f5ca6..d40c556a46d 100644
--- a/compiler-rt/include/sanitizer/msan_interface.h
+++ b/compiler-rt/include/sanitizer/msan_interface.h
@@ -42,6 +42,9 @@ extern "C" {
contents). */
void __msan_unpoison_string(const volatile char *a);
+ /* Make first n parameters of the next function call fully initialized. */
+ void __msan_unpoison_param(size_t n);
+
/* Make memory region fully uninitialized (without changing its contents).
This is a legacy interface that does not update origin information. Use
__msan_allocated_memory() instead. */
OpenPOWER on IntegriCloud