[libFuzzer] make sure the input data is not overwritten in the fuzz target (if it...
authorKostya Serebryany <kcc@google.com>
Tue, 9 May 2017 01:17:29 +0000 (01:17 +0000)
committerKostya Serebryany <kcc@google.com>
Tue, 9 May 2017 01:17:29 +0000 (01:17 +0000)
commitfe4ed9bd854d1230723568a8cc6289bf9da7fff7
treec9d6415d69ed700008c4c4783eb3cb80048411f4
parent9f29914d4018c0c8ef2b7b7bceffb0d07483e89c
[libFuzzer] make sure the input data is not overwritten in the fuzz target (if it is -- report an error)

llvm-svn: 302494
llvm/lib/Fuzzer/FuzzerDriver.cpp
llvm/lib/Fuzzer/FuzzerInternal.h
llvm/lib/Fuzzer/FuzzerLoop.cpp
llvm/lib/Fuzzer/test/CMakeLists.txt
llvm/lib/Fuzzer/test/OverwriteInputTest.cpp [new file with mode: 0644]
llvm/lib/Fuzzer/test/overwrite-input.test [new file with mode: 0644]