commit | 1467b79c0e1e6415039ee619958bd6ac77e1e8c3 | [log] [tgz] |
---|---|---|
author | morehouse <morehouse> | Mon Jul 09 23:51:08 2018 +0000 |
committer | morehouse <morehouse> | Mon Jul 09 23:51:08 2018 +0000 |
tree | 90c2b262831c3c1101db9893beddc43eab702eef | |
parent | c46c27fcbeec5493c9bb7c2f696a73558eca3c8c [diff] [blame] |
[libFuzzer] Make -fsanitize=memory,fuzzer work. This patch allows libFuzzer to fuzz applications instrumented with MSan without recompiling libFuzzer with MSan instrumentation. Fixes https://github.com/google/sanitizers/issues/958. Differential Revision: https://reviews.llvm.org/D48891 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk/lib/fuzzer@336619 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/FuzzerDriver.cpp b/FuzzerDriver.cpp index c2f8583..ff2a639 100644 --- a/FuzzerDriver.cpp +++ b/FuzzerDriver.cpp
@@ -537,6 +537,8 @@ EF = new ExternalFunctions(); if (EF->LLVMFuzzerInitialize) EF->LLVMFuzzerInitialize(argc, argv); + if (EF->__msan_scoped_disable_interceptor_checks) + EF->__msan_scoped_disable_interceptor_checks(); const Vector<std::string> Args(*argv, *argv + *argc); assert(!Args.empty()); ProgName = new std::string(Args[0]);