summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Fuzzer/test/OverwriteInputTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Fuzzer/test/OverwriteInputTest.cpp')
-rw-r--r--llvm/lib/Fuzzer/test/OverwriteInputTest.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/llvm/lib/Fuzzer/test/OverwriteInputTest.cpp b/llvm/lib/Fuzzer/test/OverwriteInputTest.cpp
deleted file mode 100644
index e688682346a..00000000000
--- a/llvm/lib/Fuzzer/test/OverwriteInputTest.cpp
+++ /dev/null
@@ -1,13 +0,0 @@
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-
-// Simple test for a fuzzer. Make sure we abort if Data is overwritten.
-#include <cstdint>
-#include <iostream>
-
-extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
- if (Size)
- *const_cast<uint8_t*>(Data) = 1;
- return 0;
-}
-
OpenPOWER on IntegriCloud