diff options
author | vanhauser-thc <vh@thc.org> | 2021-03-09 18:44:42 +0100 |
---|---|---|
committer | vanhauser-thc <vh@thc.org> | 2021-03-09 18:44:42 +0100 |
commit | 791c5c171d9e4e7391a9c3760a4a8eb4ce2b4058 (patch) | |
tree | 7b948b8d6e6b832801e104cb9f9bb3248f3793bd /instrumentation/afl-llvm-pass.so.cc | |
parent | a723156740d47c59377d1d8c2a6ca208fe510e20 (diff) | |
download | afl++-791c5c171d9e4e7391a9c3760a4a8eb4ce2b4058.tar.gz |
fix ctx-1
Diffstat (limited to 'instrumentation/afl-llvm-pass.so.cc')
-rw-r--r-- | instrumentation/afl-llvm-pass.so.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/instrumentation/afl-llvm-pass.so.cc b/instrumentation/afl-llvm-pass.so.cc index f4717345..0f773aba 100644 --- a/instrumentation/afl-llvm-pass.so.cc +++ b/instrumentation/afl-llvm-pass.so.cc @@ -217,8 +217,8 @@ bool AFLCoverage::runOnModule(Module &M) { VectorType *PrevCallerTy = NULL; if (ctx_k_str) - if (sscanf(ctx_k_str, "%u", &ctx_k) != 1 || ctx_k < 2 || ctx_k > CTX_MAX_K) - FATAL("Bad value of AFL_CTX_K (must be between 2 and CTX_MAX_K (%u))", + if (sscanf(ctx_k_str, "%u", &ctx_k) != 1 || ctx_k < 1 || ctx_k > CTX_MAX_K) + FATAL("Bad value of AFL_CTX_K (must be between 1 and CTX_MAX_K (%u))", CTX_MAX_K); if (ctx_k == 1) { |