summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Fuzzer/test/NullDerefTest.cpp
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2015-01-29 15:49:22 +0000
committerAaron Ballman <aaron@aaronballman.com>2015-01-29 15:49:22 +0000
commit7b54ed221a20d30b6a67f4544b75da5b6d4d4380 (patch)
treeb953ad1d38f66558e8f776232e4c601a34507c77 /llvm/lib/Fuzzer/test/NullDerefTest.cpp
parent4b2f17a1d333ba539b219c400000d1ca2be4c7a4 (diff)
downloadbcm5719-llvm-7b54ed221a20d30b6a67f4544b75da5b6d4d4380.tar.gz
bcm5719-llvm-7b54ed221a20d30b6a67f4544b75da5b6d4d4380.zip
Temporarily reverting the fuzzer library as it causes too many build issues for MSVC users. This reverts: 227445, 227395, 227389, 227357, 227254, 227252
llvm-svn: 227452
Diffstat (limited to 'llvm/lib/Fuzzer/test/NullDerefTest.cpp')
-rw-r--r--llvm/lib/Fuzzer/test/NullDerefTest.cpp22
1 files changed, 0 insertions, 22 deletions
diff --git a/llvm/lib/Fuzzer/test/NullDerefTest.cpp b/llvm/lib/Fuzzer/test/NullDerefTest.cpp
deleted file mode 100644
index 8811e386f9d..00000000000
--- a/llvm/lib/Fuzzer/test/NullDerefTest.cpp
+++ /dev/null
@@ -1,22 +0,0 @@
-// Simple test for a fuzzer. The fuzzer must find the string "Hi!".
-#include <cstdint>
-#include <cstdlib>
-#include <cstddef>
-#include <iostream>
-
-static volatile int Sink;
-static volatile int *Null = 0;
-
-extern "C" void TestOneInput(const uint8_t *Data, size_t Size) {
- if (Size > 0 && Data[0] == 'H') {
- Sink = 1;
- if (Size > 1 && Data[1] == 'i') {
- Sink = 2;
- if (Size > 2 && Data[2] == '!') {
- std::cout << "Found the target, dereferencing NULL\n";
- *Null = 1;
- }
- }
- }
-}
-
OpenPOWER on IntegriCloud