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

Drcov remodelling #415

Merged
merged 4 commits into from
Dec 23, 2021
Merged

Drcov remodelling #415

merged 4 commits into from
Dec 23, 2021

Conversation

domenukk
Copy link
Member

@domenukk domenukk commented Dec 9, 2021

This PR remodels the DrCovWriter.
I'm still unhappy about the general API, @s1341 how about creating the Writer in the very beginning, adding blocks to it, and then just calling .write(&path) on it at the end?

@domenukk domenukk requested a review from s1341 December 9, 2021 23:54
@s1341
Copy link
Collaborator

s1341 commented Dec 13, 2021

The question is who do we want to have as the owner of the blocks list? If it's fine that DrCovWriter owns it, then we can do as you say...

@domenukk
Copy link
Member Author

What do you think?

@s1341
Copy link
Collaborator

s1341 commented Dec 15, 2021

I'm not sure it matters. Do you want to rework it to be as you said?

@tokatoka
Copy link
Member

I think it is nicer if we can make it into a helper, something like DrCovHelper

@tokatoka
Copy link
Member

The idea is to make helper.rs as small as possible, and eventually we want to remove the main helper_ so that we can pass FridaHelperTuples instead to the executor.

@domenukk
Copy link
Member Author

What would the helper do?

@tokatoka
Copy link
Member

Things in pre_exec() and post_exec() can be moved into another DrCovRuntime or DrCovHelper (just as CoverageRuntime/AsanRuntime/CmpLogRuntime)
#307 (comment)

and we can setup the fuzzer to use multiple (different) runtimes together

@domenukk domenukk marked this pull request as ready for review December 23, 2021 14:57
@domenukk domenukk merged commit 6b51812 into main Dec 23, 2021
@domenukk domenukk deleted the drcov branch December 23, 2021 16:13
khang06 pushed a commit to khang06/LibAFL that referenced this pull request Oct 11, 2022
* drcov remodelling

* fmt

* fix

Co-authored-by: tokatoka <tokazerkje@outlook.com>
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

Successfully merging this pull request may close these issues.

None yet

3 participants