Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

output example - WARNING: Error delivering sample, retrying with a clean target #8

Closed
jplopezy opened this issue Jan 16, 2021 · 1 comment

Comments

@jplopezy
Copy link

Hi people

This question is about this output, i would like to know i'ts correct

cmd : fuzzer.exe -in in -out out -t 100000 -delivery file -instrument_module test.exe -target_module test.exe -target_method main -nargs 3 -iterations 10 -persist -loop -cmp_coverage -- "test.exe" @@

Total execs: 107988
Unique samples: 1 (0 discarded)
Crashes: 0 (0 unique)
Hangs: 0
Offsets: 27
Execs/s: 31
Instrumented module test.exe, code size: 4096
Result: 2038152770
[!] WARNING: Error delivering sample, retrying with a clean target
Instrumented module test.exe, code size: 4096
Result: 2038152770
[!] WARNING: Error delivering sample, retrying with a clean target
Instrumented module test.exe, code size: 4096
Result: 2038152770
[!] WARNING: Error delivering sample, retrying with a clean target
Instrumented module test.exe, code size: 4096
Result: 2038152770
[!] WARNING: Error delivering sample, retrying with a clean target
Instrumented module test.exe, code size: 4096
Result: 2038152770
[!] WARNING: Error delivering sample, retrying with a clean target
Instrumented module test.exe, code size: 4096
Result: 2038152770
[!] WARNING: Error delivering sample, retrying with a clean target
Instrumented module test.exe, code size: 4096
Result: 2038152770
[!] WARNING: Error delivering sample, retrying with a clean target
Instrumented module test.exe, code size: 4096
Result: 2038152770
[!] WARNING: Error delivering sample, retrying with a clean target
Instrumented module test.exe, code size: 4096
Result: 2038152770
[!] WARNING: Error delivering sample, retrying with a clean target

@ifratric
Copy link
Collaborator

In your target, you should close the input file handle before returning from the target function. Otherwise, the fuzzer won't be able to open the input file for writing (to replace it's content for the next iteration). The fuzzer "resolves" the case where it can't write next input by killing the target process, but that results in a loss of performance and the warning you encountered.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants