diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2019-08-20 18:00:15 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2019-08-20 18:00:15 +0000 |
commit | 63714eb5809e39666dec2454c354195e76f916ba (patch) | |
tree | e3714cd783c265396c2ef3c117047e7c0ea41619 /test/fuzzer/OverwriteInputTest.cpp | |
parent | 0646903fc1f75f6e605754621119473ee083f4a4 (diff) |
Notes
Diffstat (limited to 'test/fuzzer/OverwriteInputTest.cpp')
-rw-r--r-- | test/fuzzer/OverwriteInputTest.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/test/fuzzer/OverwriteInputTest.cpp b/test/fuzzer/OverwriteInputTest.cpp deleted file mode 100644 index e688682346a61..0000000000000 --- a/test/fuzzer/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; -} - |