diff options
-rw-r--r-- | compiler-rt/test/fuzzer/ReloadTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler-rt/test/fuzzer/ReloadTest.cpp b/compiler-rt/test/fuzzer/ReloadTest.cpp index fb1fef97a30..853f7ba99e1 100644 --- a/compiler-rt/test/fuzzer/ReloadTest.cpp +++ b/compiler-rt/test/fuzzer/ReloadTest.cpp @@ -5,9 +5,9 @@ // Test that fuzzer we can reload artifacts with any bytes inside. #include <algorithm> #include <cstdint> +#include <cstdlib> #include <numeric> #include <set> -#include <stdio.h> extern "C" size_t LLVMFuzzerCustomMutator(uint8_t *Data, size_t Size, size_t MaxSize, unsigned int Seed) { @@ -19,6 +19,6 @@ extern "C" size_t LLVMFuzzerCustomMutator(uint8_t *Data, size_t Size, extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { if (Size > 5000 && std::set<uint8_t>(Data, Data + Size).size() > 255 && (uint8_t)std::accumulate(Data, Data + Size, uint8_t(Size)) == 0) - __builtin_trap(); + abort(); return 0; } |