[libFuzzer] simplify a test, hopefully to fix the bot

llvm-svn: 334156
This commit is contained in:
Kostya Serebryany 2018-06-07 01:18:43 +00:00
parent 7452f73c43
commit 7a88f19099
1 changed files with 2 additions and 2 deletions

View File

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