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
Name files by hash of their contents #2077
Comments
That is what libfuzzer does. This looses interesting information like the source the crash was mutated on plus would break existing tooling. |
It makes it easier to tell when a new input has been generated, e.g., in comparing runs of a target, or comparing runs of different targets whose inputs have the same structure. If it were an option, would you imagine it enabled by a environment variable? |
But if another instance finds the same bug it highly likely has a different hash because of different length or different bits through mutations. If you still think that this change would help you (which i honestly doubt :) ) then send a PR. Yes it should be an env. |
I see that the repo already contains a SHA1 implementation:
To avoid to having two implementations, I'm going to move that code into a |
Give a try to |
@SonicStark I think this defeats the purpose to see if a libfuzzer instance found the same crash or not (but as I said, IMHO this will rarely have any use anyway). @smoelius please keep the sha1 implementation as this is a download of libfuzzer which I will update at some point and then things break. just put the best sha1 that you find into src/afl-performance.c. |
Hmm. Not sure why this didn't automatically close. |
Is there a way to name crashes, hangs, etc. by the hash of their contents, e.g., SHA1 or SHA256?
If not, is this something that you would be open to?
The text was updated successfully, but these errors were encountered: