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

Fixing the inconsistency btw #2012 and #2066 #2074

Merged

Conversation

mkravchik
Copy link
Contributor

There was an inconsistency between two recent PRs #2012 and #2066. This one fixes it.

@@ -86,7 +86,7 @@ struct Opt {

#[allow(clippy::similar_names)]
pub fn main() {
const MAP_SIZE: usize = EDGES_MAP_SIZE; //65536;
const MAP_SIZE: usize = EDGES_MAP_SIZE_IN_USE; //65536;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we not support variable map sizes in libafl_cc forkserver yet?
AFL++ collision free coverage at least can do that

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we do support but it is up to the harness if it uses it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I try to set it to the 64K, it fails with:
thread 'main' panicked at /home/user/LibAFL/libafl/src/executors/forkserver.rs:765:13:
assertion failed: self.map_size.is_none() || map_size as usize <= self.map_size.unwrap()

I'm not sure why is this logic there, so I did not want to mess with it

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i fixed it in another PR already.

@addisoncrump addisoncrump merged commit 2b18562 into AFLplusplus:main Apr 18, 2024
77 of 78 checks passed
@addisoncrump
Copy link
Collaborator

Thank you! I'll rebase #2073 on this.

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

4 participants