diff options
| author | van Hauser <vh@thc.org> | 2020-04-08 03:54:49 +0200 |
|---|---|---|
| committer | van Hauser <vh@thc.org> | 2020-04-08 03:56:12 +0200 |
| commit | 9ef4b45609c4bf6448b0ae08bc644f0aa7a9f88b (patch) | |
| tree | bd144cd50a77bb055ed0f26b0084a3c8e6e588d0 /llvm_mode/README.ctx.md | |
| parent | 452acf3a752f3ff360a5eebc526567cd3ba9a407 (diff) | |
| download | afl++-9ef4b45609c4bf6448b0ae08bc644f0aa7a9f88b.tar.gz | |
ctx done
Diffstat (limited to 'llvm_mode/README.ctx.md')
| -rw-r--r-- | llvm_mode/README.ctx.md | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/llvm_mode/README.ctx.md b/llvm_mode/README.ctx.md new file mode 100644 index 00000000..14255313 --- /dev/null +++ b/llvm_mode/README.ctx.md @@ -0,0 +1,22 @@ +# AFL Context Sensitive Branch Coverage + +## What is this? + +This is an LLVM-based implementation of the context sensitive branch coverage. + +Basically every function gets it's own ID and that ID is combined with the +edges of the called functions. + +So if both function A and function B call a function C, the coverage +collected in C will be different. + +In math the coverage is collected as follows: +`map[current_location_ID ^ previous_location_ID >> 1 ^ previous_callee_ID] += 1` + +## Usage + +Set the `AFL_LLVM_INSTRUMENT=CTX` or `AFL_LLVM_CTX=1` environment variable. + +It is highly recommended to increase the MAP_SIZE_POW2 definition in +config.h to at least 18 and maybe up to 20 for this as otherwise too +many map collisions occur. |
