[MSan] Introduce __msan_unpoison_param().
authorMatt Morehouse <mascasa@google.com>
Thu, 9 May 2019 21:50:57 +0000 (21:50 +0000)
committerMatt Morehouse <mascasa@google.com>
Thu, 9 May 2019 21:50:57 +0000 (21:50 +0000)
commita612b5adb7a63b10736134cb7b8e70f1614883be
treec1c8b4c7f19936b7b65dafc662a7c49fdc3f20d9
parente9aaa5582fa164e8fbcf819c672c02f5f5448e6c
[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
compiler-rt/include/sanitizer/msan_interface.h
compiler-rt/lib/msan/msan_interceptors.cc
compiler-rt/lib/msan/msan_interface_internal.h
compiler-rt/test/msan/unpoison_param.cc [new file with mode: 0644]