[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH v2 01/12] fuzz: don't buffer stdout in afl stubs



... to avoid obscuring output.

Signed-off-by: Wei Liu <wei.liu2@xxxxxxxxxx>
---
Cc: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
Cc: Jan Beulich <jbeulich@xxxxxxxx>
Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
Cc: George Dunlap <george.dunlap@xxxxxxxxxxxxx>
---
 tools/fuzz/libelf/afl-libelf-fuzzer.c                              | 2 ++
 tools/fuzz/x86_instruction_emulator/afl-x86-insn-emulator-fuzzer.c | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/tools/fuzz/libelf/afl-libelf-fuzzer.c 
b/tools/fuzz/libelf/afl-libelf-fuzzer.c
index 02cbfb0e2c..115c98e22e 100644
--- a/tools/fuzz/libelf/afl-libelf-fuzzer.c
+++ b/tools/fuzz/libelf/afl-libelf-fuzzer.c
@@ -13,6 +13,8 @@ int main(int argc, char **argv)
     size_t size;
     FILE *fp;
 
+    setbuf(stdout, NULL);
+
     if ( argc != 2 )
     {
         printf("Expecting only one argument\n");
diff --git a/tools/fuzz/x86_instruction_emulator/afl-x86-insn-emulator-fuzzer.c 
b/tools/fuzz/x86_instruction_emulator/afl-x86-insn-emulator-fuzzer.c
index b5668c11e7..494c23ba2e 100644
--- a/tools/fuzz/x86_instruction_emulator/afl-x86-insn-emulator-fuzzer.c
+++ b/tools/fuzz/x86_instruction_emulator/afl-x86-insn-emulator-fuzzer.c
@@ -13,6 +13,8 @@ int main(int argc, char **argv)
     size_t size;
     FILE *fp;
 
+    setbuf(stdout, NULL);
+
     if ( argc != 2 )
     {
         printf("Expecting only one argument\n");
-- 
2.11.0


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.