summaryrefslogtreecommitdiff
path: root/lib/fuzzer/FuzzerExtFunctions.def
diff options
context:
space:
mode:
authorMatt Morehouse <mascasa@google.com>2019-05-09 22:48:46 +0000
committerMatt Morehouse <mascasa@google.com>2019-05-09 22:48:46 +0000
commit8d9c46f942cd628947f4209bedc0a2f47115ec31 (patch)
treea019a5defb0756cf328e9da0051913897bb89337 /lib/fuzzer/FuzzerExtFunctions.def
parent87743d8a94e5b8a2f08d5345b27326b8fcb80d9e (diff)
downloadcompiler-rt-8d9c46f942cd628947f4209bedc0a2f47115ec31.tar.gz
[libFuzzer] Unpoison parameters before calling user callback.
Summary: Fixes an MSan false positive when compiling with -fsanitize=memory,fuzzer. See https://github.com/google/oss-fuzz/issues/2369 for more details. Reviewers: kcc Reviewed By: kcc Subscribers: llvm-commits, metzman, eugenis Tags: #llvm Differential Revision: https://reviews.llvm.org/D61753 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@360390 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/fuzzer/FuzzerExtFunctions.def')
-rw-r--r--lib/fuzzer/FuzzerExtFunctions.def1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/fuzzer/FuzzerExtFunctions.def b/lib/fuzzer/FuzzerExtFunctions.def
index 288a59ce3..41fa0fd2b 100644
--- a/lib/fuzzer/FuzzerExtFunctions.def
+++ b/lib/fuzzer/FuzzerExtFunctions.def
@@ -46,3 +46,4 @@ EXT_FUNC(__sanitizer_set_report_fd, void, (void*), false);
EXT_FUNC(__msan_scoped_disable_interceptor_checks, void, (), false);
EXT_FUNC(__msan_scoped_enable_interceptor_checks, void, (), false);
EXT_FUNC(__msan_unpoison, void, (const volatile void *, size_t size), false);
+EXT_FUNC(__msan_unpoison_param, void, (size_t n), false);