|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] fuzz/libelf: exit with fuzzer function return value
commit 4453129a0b37748ddbb151a1619c49cebab1069b
Author: Wei Liu <wei.liu2@xxxxxxxxxx>
AuthorDate: Wed Jan 25 11:14:43 2017 +0000
Commit: Wei Liu <wei.liu2@xxxxxxxxxx>
CommitDate: Thu Jan 26 17:23:40 2017 +0000
fuzz/libelf: exit with fuzzer function return value
Now the function can return nonzero value. Use that value as exit code
for the stub program. AFL might be able to use such information to
optimise fuzzing process.
Signed-off-by: Wei Liu <wei.liu2@xxxxxxxxxx>
---
tools/fuzz/libelf/afl-libelf-fuzzer.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/tools/fuzz/libelf/afl-libelf-fuzzer.c
b/tools/fuzz/libelf/afl-libelf-fuzzer.c
index b5668c1..02cbfb0 100644
--- a/tools/fuzz/libelf/afl-libelf-fuzzer.c
+++ b/tools/fuzz/libelf/afl-libelf-fuzzer.c
@@ -42,9 +42,7 @@ int main(int argc, char **argv)
fclose(fp);
- LLVMFuzzerTestOneInput(input, size);
-
- return 0;
+ return LLVMFuzzerTestOneInput(input, size);
}
/*
--
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 |