[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] fuzz: don't buffer stdout in afl stubs
commit 9d3226aa060916f21df3be98abb39f11496ab8ce Author: Wei Liu <wei.liu2@xxxxxxxxxx> AuthorDate: Tue Jan 31 11:07:58 2017 +0000 Commit: Wei Liu <wei.liu2@xxxxxxxxxx> CommitDate: Wed Feb 1 11:25:26 2017 +0000 fuzz: don't buffer stdout in afl stubs ... to avoid obscuring output. Signed-off-by: Wei Liu <wei.liu2@xxxxxxxxxx> Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx> --- 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 02cbfb0..115c98e 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 b5668c1..494c23b 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"); -- generated by git-patchbot for /home/xen/git/xen.git#master _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx https://lists.xenproject.org/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |