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

bug: CMP_MAP polluted by contract setup deployer #480

Open
plotchy opened this issue May 15, 2024 · 0 comments
Open

bug: CMP_MAP polluted by contract setup deployer #480

plotchy opened this issue May 15, 2024 · 0 comments
Assignees

Comments

@plotchy
Copy link
Contributor

plotchy commented May 15, 2024

While testing corpus additions on better comparisons I found that CMP_MAP is getting polluted by the contract deployers.

Since step in the Host is used during contract setup and deployment, the CMP_MAP gets values stored that aren't related to the fuzzing campaign.

This shouldnt happen before any fuzz tests are ran

ityfuzz/src/evm/host.rs

Lines 1058 to 1062 in b9342a0

#[cfg(feature = "cmp")]
{
let idx = (interp.program_counter()) % MAP_SIZE;
CMP_MAP[idx] = br;
}

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

No branches or pull requests

2 participants