-
Notifications
You must be signed in to change notification settings - Fork 27
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
Uninstrumented crowbar binaries trigger weird error in afl-fuzz
#55
Comments
This is annoying and I'm not sure how to improve the error message. Crowbar uses
|
Ok I see, thanks for the explanation, that makes total sense now. Do you think there is a chance that we could split That's a relatively long-term fix though. Would you accept an addition to the README that warn against that limitation and suggest people to double check they compiled their to-be-fuzzed crowbar binary with a |
Yes, we could split afl.c. I think the easiest is to add a new file |
I've ran into this problem and googled this issue, which helped me to resolve it. My binary turned out to be not instrumented, I've added compiler flags only to library that I was testing, but not the binary. Quite confusing experience overall. |
@pascutto and I recently ran into a weird issue while trying to fuzz https://github.com/mirage/index.
We tried fuzzing an uninstrumented binary by mistake and got a
Fork server handshake failed
error fromafl-fuzz
instead of the usualNo instrumentation detected
one which made it a bit hard to realize our mistake.I tried reproducing this on simpler examples from https://github.com/NathanReb/ocaml-afl-examples and it seems to indicate that this happens when using crowbar but not otherwise.
To reproduce you can clone the repo and run the following commands from non
afl
opam switch:and
As you can see, the first example is just a simple binary trying to parse an int from the input. It doesn't use crowbar and we get the expected
No instrumentation detected
error.The second one on the other hand uses crowbar and leads to the
Fork server handsake failed
.Do you have any idea why
afl-fuzz
isn't able to detect that the binary isn't instrumented?The text was updated successfully, but these errors were encountered: