mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
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@citrix.com>
This commit is contained in:
1 parent
53693bf3be
commit
4453129a0b
1 file changed
+1
-3
@@ -42,9 +42,7 @@ int main(int argc, char **argv)
|
||||
|
||||
fclose(fp);
|
||||
|
||||
LLVMFuzzerTestOneInput(input, size);
|
||||
|
||||
return 0;
|
||||
return LLVMFuzzerTestOneInput(input, size);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||