summaryrefslogtreecommitdiff
path: root/test/fuzzer/CleanseTest.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2019-08-20 18:00:15 +0000
committerDimitry Andric <dim@FreeBSD.org>2019-08-20 18:00:15 +0000
commit63714eb5809e39666dec2454c354195e76f916ba (patch)
treee3714cd783c265396c2ef3c117047e7c0ea41619 /test/fuzzer/CleanseTest.cpp
parent0646903fc1f75f6e605754621119473ee083f4a4 (diff)
Notes
Diffstat (limited to 'test/fuzzer/CleanseTest.cpp')
-rw-r--r--test/fuzzer/CleanseTest.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/test/fuzzer/CleanseTest.cpp b/test/fuzzer/CleanseTest.cpp
deleted file mode 100644
index d4efa12bb207e..0000000000000
--- a/test/fuzzer/CleanseTest.cpp
+++ /dev/null
@@ -1,16 +0,0 @@
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-
-// Test the fuzzer is able to 'cleanse' the reproducer
-// by replacing all irrelevant bytes with garbage.
-#include <cstddef>
-#include <cstdint>
-#include <cstdlib>
-
-extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
- if (Size >= 20 && Data[1] == '1' && Data[5] == '5' && Data[10] == 'A' &&
- Data[19] == 'Z')
- abort();
- return 0;
-}
-