aboutsummaryrefslogtreecommitdiff
path: root/test/fuzzer/NullDerefTest.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2018-07-28 11:06:48 +0000
committerDimitry Andric <dim@FreeBSD.org>2018-07-28 11:06:48 +0000
commit93c1b73a09a52d4a265f683bf1954b08bb430049 (patch)
tree5543464d74945196cc890e9d9099e5d0660df7eb /test/fuzzer/NullDerefTest.cpp
parent0d8e7490d6e8a13a8f0977d9b7771803b9f64ea0 (diff)
Diffstat (limited to 'test/fuzzer/NullDerefTest.cpp')
-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 1b44b682ace6..48df0f54cfe0 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;
}
}