Angora icon indicating copy to clipboard operation
Angora copied to clipboard

Increase MAP_SIZE or adjust function call context?

Open wideglide opened this issue 5 years ago • 1 comments

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.

wideglide avatar Jun 04 '20 15:06 wideglide

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.

spinpx avatar Jul 19 '20 09:07 spinpx