diff options
| author | 2017-10-04 20:27:34 +0000 | |
|---|---|---|
| committer | 2017-10-04 20:27:34 +0000 | |
| commit | 31eb748944903b7f4f38afda9851951ca9dfc1ae (patch) | |
| tree | 9b95b6ea45d0874d75eb05b90c0840e191416439 /gnu/llvm/lib/Fuzzer/test/ShrinkControlFlowTest.cpp | |
| parent | Don't try to handle IPv4-compatible IPv6 addresses (diff) | |
| download | wireguard-openbsd-31eb748944903b7f4f38afda9851951ca9dfc1ae.tar.xz wireguard-openbsd-31eb748944903b7f4f38afda9851951ca9dfc1ae.zip | |
Import LLVM 5.0.0 release including clang, lld and lldb.
Diffstat (limited to 'gnu/llvm/lib/Fuzzer/test/ShrinkControlFlowTest.cpp')
| -rw-r--r-- | gnu/llvm/lib/Fuzzer/test/ShrinkControlFlowTest.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gnu/llvm/lib/Fuzzer/test/ShrinkControlFlowTest.cpp b/gnu/llvm/lib/Fuzzer/test/ShrinkControlFlowTest.cpp index 0fd7c5e9a1f..37eeede7cbf 100644 --- a/gnu/llvm/lib/Fuzzer/test/ShrinkControlFlowTest.cpp +++ b/gnu/llvm/lib/Fuzzer/test/ShrinkControlFlowTest.cpp @@ -2,15 +2,16 @@ // License. See LICENSE.TXT for details. // Test that we can find the minimal item in the corpus (3 bytes: "FUZ"). +#include <cstddef> #include <cstdint> +#include <cstdio> #include <cstdlib> -#include <cstddef> #include <cstring> -#include <cstdio> static volatile int Sink; extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { + if (Size > 64) return 0; int8_t Ids[256]; memset(Ids, -1, sizeof(Ids)); for (size_t i = 0; i < Size; i++) |
