Open
Description
Problem:
https://github.com/llvm-mirror/compiler-rt/blob/master/lib/fuzzer/FuzzerInterface.h#L47 says mentions LLVMFuzzerInitialize() should return 0.
However, testing LLVMFuzzerInitialize() shows that libfuzzer does not error when -1 is returned. This can be dangerous if we are assuming tests to fail if a function is GUARD
ed in LLVMFuzzerInitialize.
Proposed Solution:
Move non-expensive initialization calls to LLVMFuzzerTestOneInput()
, or add sanity checks in the main fuzz test function.