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

Increase MAP_SIZE or adjust function call context? #102

Open
wideglide opened this issue Jun 4, 2020 · 1 comment
Open

Increase MAP_SIZE or adjust function call context? #102

wideglide opened this issue Jun 4, 2020 · 1 comment

Comments

@wideglide
Copy link

We're running into issues where Angora aborts fuzzing within the first 24 hours because the Density is too large (> 10%).

What is the recommended fix for this issue?

The error message suggests two different solutions

 WARN  angora::stats::chart       > Density is too large (> 10%). Please increase `MAP_SIZE_POW2` in and `common/src/config.rs`. Or disable function-call context(density > 50%) by
compiling with `ANGORA_CUSTOM_FN_CONTEXT=k` (k is an integer and 0 <= k <= 32) environment variable. Angora disables context if k is 0.

I see that the default map size is already 2^20 however, and I am not sure what the impact will be by reducing/disabling the function-call context.

@spinpx
Copy link
Member

spinpx commented Jul 19, 2020

The warning is the method for fixing this issues.

  1. Since angora check every entry in the map, so if you change the map, it will influence its efficiency.
  2. You you disable function-call context, angora can't distinguish the branches in different function call context

or you can use ANGORA_INST_RATIO like AFL.

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