[libFuzzer] Make -fsanitize=memory,fuzzer work.
authorMatt Morehouse <mascasa@google.com>
Mon, 9 Jul 2018 23:51:08 +0000 (23:51 +0000)
committerMatt Morehouse <mascasa@google.com>
Mon, 9 Jul 2018 23:51:08 +0000 (23:51 +0000)
commita34c65e845dc7f55a335cdede2033766eb73b66a
tree39e34f83ff079e90e7e4b3cd5554538f90367ad9
parent6cd35e819438184a65d757bdbee2e749702915d5
[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

llvm-svn: 336619
compiler-rt/lib/fuzzer/FuzzerDriver.cpp
compiler-rt/lib/fuzzer/FuzzerExtFunctions.def
compiler-rt/lib/fuzzer/FuzzerInternal.h
compiler-rt/lib/fuzzer/FuzzerLoop.cpp
compiler-rt/test/fuzzer/UninitializedStrlen.cpp [new file with mode: 0644]
compiler-rt/test/fuzzer/UseAfterDtor.cpp [new file with mode: 0644]
compiler-rt/test/fuzzer/lit.cfg
compiler-rt/test/fuzzer/msan.test [new file with mode: 0644]