-
-
Notifications
You must be signed in to change notification settings - Fork 347
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
sancov_cmp.c always uses 1-byte value profiles #3094
Comments
Good spot - I messed up that macro. I think it should have been:
Note the
Gives the output:
Which looks a bit better to me. I haven't touched this codebase in a long time, so you'll need to double check that is doing what you'd expect. |
Hey @ammaraskar, I'm guessing you spotted this because you've just been looking closely at the code. If I open a PR with that proposed fix from above are you comfortable to check that the logic is correct? |
Yup, I did a code review after finding that some longer magic numbers weren't being found by the libfuzzer afllib shim, I'm happy to review a change. Longer term I'm planning on making a PR with some integration tests for the libfuzzer shim that should hopefully catch issues like this. |
…arisons are treat as 1 byte (rather than 2, 4, or 8)
Hi @ammaraskar, #3095 has the proposed fix in it - if you can rerun your test subject that was misbehaving before and see if it's beahving now, that would be super helpful. A regression test would be awesome if you can contribute one! |
… treat as 1 byte (rather than 2, 4, or 8) (#3095)
In the commit 4e54182#diff-7aadefadeb1ef4ea6af462b15077e3bb06bfd52f42ff6c8f8ef534b64b748638L25-L37
sancov_cmp.c
was changed to refactor a bunch of individualcalls into
Notice that the new macro
SANCOV_VALUE_PROFILE_CALL
only ever does__libafl_targets_value_profile1
and does not usearg_size
meaning all value profiles end up using the 1-byte value profiles./cc @DanBlackwell
The text was updated successfully, but these errors were encountered: