projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53693bf
)
fuzz/libelf: exit with fuzzer function return value
author
Wei Liu
<wei.liu2@citrix.com>
Wed, 25 Jan 2017 11:14:43 +0000
(11:14 +0000)
committer
Wei Liu
<wei.liu2@citrix.com>
Thu, 26 Jan 2017 17:23:40 +0000
(17:23 +0000)
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@citrix.com>
tools/fuzz/libelf/afl-libelf-fuzzer.c
patch
|
blob
|
history
diff --git
a/tools/fuzz/libelf/afl-libelf-fuzzer.c
b/tools/fuzz/libelf/afl-libelf-fuzzer.c
index b5668c11e74e2e0688c8dae1b505ff21d9d9eb89..02cbfb0e2cdd49e8f9f0f9d92c84239edb6c5077 100644
(file)
--- 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);
}
/*