summaryrefslogtreecommitdiff
path: root/test/fuzzer
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2018-06-07 01:18:43 +0000
committerKostya Serebryany <kcc@google.com>2018-06-07 01:18:43 +0000
commitf46892192068bf16984d429dbeb4123c12c47eca (patch)
tree63965e062173322dade66c732eacd25f823c4ff8 /test/fuzzer
parentd47c8115e95d6492a422916cf1f495a521249d01 (diff)
[libFuzzer] simplify a test, hopefully to fix the bot
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@334156 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/fuzzer')
-rw-r--r--test/fuzzer/NullDerefTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/fuzzer/NullDerefTest.cpp b/test/fuzzer/NullDerefTest.cpp
index 1b44b682a..48df0f54c 100644
--- a/test/fuzzer/NullDerefTest.cpp
+++ b/test/fuzzer/NullDerefTest.cpp
@@ -5,7 +5,7 @@
#include <cstddef>
#include <cstdint>
#include <cstdlib>
-#include <iostream>
+#include <cstdio>
static volatile int Sink;
static volatile int *Null = 0;
@@ -16,7 +16,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
if (Size > 1 && Data[1] == 'i') {
Sink = 2;
if (Size > 2 && Data[2] == '!') {
- std::cout << "Found the target, dereferencing NULL\n";
+ printf("Found the target, dereferencing NULL\n");
*Null = 1;
}
}