commit | fe4ed9bd854d1230723568a8cc6289bf9da7fff7 | [log] [tgz] |
---|---|---|
author | Kostya Serebryany <kcc@google.com> | Tue May 09 01:17:29 2017 +0000 |
committer | Kostya Serebryany <kcc@google.com> | Tue May 09 01:17:29 2017 +0000 |
tree | c9d6415d69ed700008c4c4783eb3cb80048411f4 | |
parent | 9f29914d4018c0c8ef2b7b7bceffb0d07483e89c [diff] [blame] |
[libFuzzer] make sure the input data is not overwritten in the fuzz target (if it is -- report an error) llvm-svn: 302494
diff --git a/llvm/lib/Fuzzer/test/overwrite-input.test b/llvm/lib/Fuzzer/test/overwrite-input.test new file mode 100644 index 0000000..81c2790 --- /dev/null +++ b/llvm/lib/Fuzzer/test/overwrite-input.test
@@ -0,0 +1,2 @@ +RUN: not LLVMFuzzer-OverwriteInputTest 2>&1 | FileCheck %s +CHECK: ERROR: libFuzzer: fuzz target overwrites it's const input