diff options
author | Andrea Fioraldi <andreafioraldi@gmail.com> | 2021-03-08 09:50:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-08 09:50:18 +0100 |
commit | c96fca6833a78e833e0ccb3d08bff8fbd47ce40a (patch) | |
tree | 78bf0bd5d8b833b3f45d002c4ac8425a8797aa0a /instrumentation/afl-compiler-rt.o.c | |
parent | 9b3d8c327d33191b181219ffce411b40bdbe8902 (diff) | |
parent | c429021de10cf01878bd2150cc68c6b403db9335 (diff) | |
download | afl++-c96fca6833a78e833e0ccb3d08bff8fbd47ce40a.tar.gz |
Merge pull request #779 from AFLplusplus/top-k-ctx
Restore correct CTX behaviour and enable K-CTX coverage for LLVM Classic
Diffstat (limited to 'instrumentation/afl-compiler-rt.o.c')
-rw-r--r-- | instrumentation/afl-compiler-rt.o.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/instrumentation/afl-compiler-rt.o.c b/instrumentation/afl-compiler-rt.o.c index a702ec39..ff14b966 100644 --- a/instrumentation/afl-compiler-rt.o.c +++ b/instrumentation/afl-compiler-rt.o.c @@ -20,7 +20,7 @@ #include "config.h" #include "types.h" #include "cmplog.h" -#include "llvm-ngram-coverage.h" +#include "llvm-alternative-coverage.h" #include <stdio.h> #include <stdlib.h> @@ -97,10 +97,12 @@ int __afl_selective_coverage_temp = 1; #if defined(__ANDROID__) || defined(__HAIKU__) PREV_LOC_T __afl_prev_loc[NGRAM_SIZE_MAX]; +PREV_LOC_T __afl_prev_caller[CTX_MAX_K]; u32 __afl_prev_ctx; u32 __afl_cmp_counter; #else __thread PREV_LOC_T __afl_prev_loc[NGRAM_SIZE_MAX]; +__thread PREV_LOC_T __afl_prev_caller[CTX_MAX_K]; __thread u32 __afl_prev_ctx; __thread u32 __afl_cmp_counter; #endif |