llvm-mirror/lib/Fuzzer
Dan Liew 0e9bdedc89 [LibFuzzer] Fix some unit test crashes on OSX.
This fixes the following unit tests:

FuzzerDictionary.ParseOneDictionaryEntry
FuzzerDictionary.ParseDictionaryFile

The issue appears to be mixing non-ASan-ified code (LibFuzzer) and
ASan-ified code (the unittest) as the tests would pass fine if
everything was built with ASan enabled.

I believe the issue is that different implementations of std::vector<>
are being used in LibFuzzer and outside LibFuzzer (in the unittests).
For Libcxx (I've not seen the issue manifest for libstdc++) we can disable
the ASanified std::vector<> by definining the ``_LIBCPP_HAS_NO_ASAN`` macro.
Doing this fixes the tests on OSX.

Differential Revision: http://reviews.llvm.org/D21049

llvm-svn: 272374
2016-06-10 05:33:07 +00:00
..
afl [libFuzzer] add a license header to afl/afl_driver.cpp 2016-05-24 19:05:25 +00:00
test [LibFuzzer] Fix some unit test crashes on OSX. 2016-06-10 05:33:07 +00:00
CMakeLists.txt [LibFuzzer] Reimplement how the optional user functions are called. 2016-06-02 05:48:02 +00:00
cxx.dict [libFuzzer] add AFL-style dictionary for C++, remove the old file with tokens 2015-12-22 01:50:51 +00:00
FuzzerCrossOver.cpp
FuzzerDFSan.h
FuzzerDriver.cpp [LibFuzzer] Declare and use sanitizer functions in `fuzzer::ExternalFunctions` 2016-06-07 23:32:50 +00:00
FuzzerExtFunctions.def [LibFuzzer] Declare and use sanitizer functions in `fuzzer::ExternalFunctions` 2016-06-07 23:32:50 +00:00
FuzzerExtFunctions.h [LibFuzzer] Declare and use sanitizer functions in `fuzzer::ExternalFunctions` 2016-06-07 23:32:50 +00:00
FuzzerExtFunctionsDlsym.cpp [LibFuzzer] Reimplement how the optional user functions are called. 2016-06-02 05:48:02 +00:00
FuzzerExtFunctionsWeak.cpp [LibFuzzer] Reimplement how the optional user functions are called. 2016-06-02 05:48:02 +00:00
FuzzerFlags.def [libfuzzer] prune_corpus option for disabling pruning during the load. 2016-06-07 18:16:32 +00:00
FuzzerFnAdapter.h [LibFuzzer] Add missing #include<string> 2016-05-26 21:54:25 +00:00
FuzzerInterface.h [libfuzzer] custom crossover interface function. 2016-06-07 20:22:15 +00:00
FuzzerInternal.h [LibFuzzer] Declare and use sanitizer functions in `fuzzer::ExternalFunctions` 2016-06-07 23:32:50 +00:00
FuzzerIO.cpp [LibFuzzer] Declare and use sanitizer functions in `fuzzer::ExternalFunctions` 2016-06-07 23:32:50 +00:00
FuzzerLoop.cpp [libFuzzer] add 'weak' back to __sanitizer_malloc_hook and __sanitizer_free_hook 2016-06-08 04:49:29 +00:00
FuzzerMain.cpp [LibFuzzer] Reimplement how the optional user functions are called. 2016-06-02 05:48:02 +00:00
FuzzerMutate.cpp [LibFuzzer] Declare and use sanitizer functions in `fuzzer::ExternalFunctions` 2016-06-07 23:32:50 +00:00
FuzzerSHA1.cpp
FuzzerTracePC.cpp [LibFuzzer] Provide stub implementation of __sanitizer_cov_trace_pc_indir 2016-06-06 20:27:09 +00:00
FuzzerTracePC.h [libfuzzer] Refactoring coverage state-management code. 2016-05-10 23:43:15 +00:00
FuzzerTraceState.cpp Fix compilation with GCC, which treats this as a constructor name not a type 2016-05-27 21:05:35 +00:00
FuzzerUtil.cpp [libFuzzer] make OOM-handling more portable. Instead of sending a signal to the main fuzzing thread, print the message in the getrusage thread and exit. 2016-05-27 00:54:15 +00:00
README.txt

Move to http://llvm.org/docs/LibFuzzer.html