Expand description
Utility functions for fine-grained coverage collection: Including functions to: wrap the specified external symbols, extract partial match information from comparison operands, mutate the AFL coverage bitmap, etc.
Functions§
- base_
idx_ ⚠of_ app_ pc - Calculate a suitable coverage-bitmap base index for the program address
app_pc. The address is hashed and masked to ensure it is within the bounds of the bitmap. - compare_
ptrs ⚠ - Record coverage information for the comparison between the
nbytes of data pointed to bya, and thenbytes pointed to byb. The coverage information is written to the coverage bitmap pointed to byafl_cmp_area, starting atbase_idx. - get_
afl_ ⚠cmp_ area - wrap_
compare_ symbols - Called from WinAFL. Check if any of the compare symbols (defined in the
cmp::Symbolsenum) are exported by the module with base addressmod_base_addr. Wrap all of the compare symbols that are found with their associated wrapper function. - write_
coverage ⚠ - Record coverage information for the comparison between slices
aandb. The coverage information is written to the coverage bitmap pointed to byafl_cmp_area, starting atbase_idx.