fuzzing - #58
Draft
pufferfish101007 wants to merge 2 commits into
Draft
Conversation
sb3: more blocks + support orphaned reporters (not roundtripped yet)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
implements some fuzzing facilities using
libafl. Adds theArbitraryandMutatetraits to structured sb3 so that we can mutate it while mainti0aining well-formedness (which wouldn't be possible if working with the raw json)some of this is LLM-written and needs to be heavily reviewed/rewritten before merging. but the testcase reduction does work.
sb2/src/structured/{mutate,arbitrary}.rswere written by a human (me) i think.fuzzing probably works but it's difficult to test properly because the compiler has too many bugs and missing features at the moment.
note that this uses the unstable macro_rules attribute macros feature (for the
arbitrary_with_contextmacro insb3), which causes problems with rust-analyzer and rustdoc on the current nightly version; rustdoc issues should be fixed on an upgrade but not sure about r-a.TODO:
ArbitraryandMutatefor structured sb3? If we allow mutate to create increasing mutations as well as decreasing, then it shouldn't be necessaryfuzz-libaflwere heavily LLM generated so need rewritten or at least very thorough review