[compiler-rt] r334156 - [libFuzzer] simplify a test, hopefully to fix the bot

Kostya Serebryany via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 6 18:18:43 PDT 2018


Author: kcc
Date: Wed Jun  6 18:18:43 2018
New Revision: 334156

URL: http://llvm.org/viewvc/llvm-project?rev=334156&view=rev
Log:
[libFuzzer] simplify a test, hopefully to fix the bot

Modified:
    compiler-rt/trunk/test/fuzzer/NullDerefTest.cpp

Modified: compiler-rt/trunk/test/fuzzer/NullDerefTest.cpp
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/fuzzer/NullDerefTest.cpp?rev=334156&r1=334155&r2=334156&view=diff
==============================================================================
--- compiler-rt/trunk/test/fuzzer/NullDerefTest.cpp (original)
+++ compiler-rt/trunk/test/fuzzer/NullDerefTest.cpp Wed Jun  6 18:18:43 2018
@@ -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(co
     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;
       }
     }




More information about the llvm-commits mailing list