Index: compiler-rt/test/fuzzer/ReloadTest.cpp =================================================================== --- compiler-rt/test/fuzzer/ReloadTest.cpp +++ compiler-rt/test/fuzzer/ReloadTest.cpp @@ -5,9 +5,9 @@ // Test that fuzzer we can reload artifacts with any bytes inside. #include #include +#include #include #include -#include extern "C" size_t LLVMFuzzerCustomMutator(uint8_t *Data, size_t Size, size_t MaxSize, unsigned int Seed) { @@ -19,6 +19,6 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { if (Size > 5000 && std::set(Data, Data + Size).size() > 255 && (uint8_t)std::accumulate(Data, Data + Size, uint8_t(Size)) == 0) - __builtin_trap(); + abort(); return 0; }