Page MenuHomePhabricator

D61066.id196443.diff
No OneTemporary

File Metadata

Created
Sun, Sep 22, 9:52 PM

D61066.id196443.diff

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 <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" 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;
}

Event Timeline