diff options
author | van Hauser <vh@thc.org> | 2020-10-29 10:45:32 +0100 |
---|---|---|
committer | van Hauser <vh@thc.org> | 2020-10-29 10:45:32 +0100 |
commit | abac876b3aa20d381319d73cbb6c7ad1e7f2395c (patch) | |
tree | 0b1cca4bd7f5d63ba5c2e76b6ad55de42ad2ee6b /instrumentation | |
parent | 7c8b0af84aa7d2005e32a8bd0f00ece92635b0e0 (diff) | |
download | afl++-abac876b3aa20d381319d73cbb6c7ad1e7f2395c.tar.gz |
better warn if skipping large dict
Diffstat (limited to 'instrumentation')
-rw-r--r-- | instrumentation/split-compares-pass.so.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/instrumentation/split-compares-pass.so.cc b/instrumentation/split-compares-pass.so.cc index 6d0c52a4..3f05dd97 100644 --- a/instrumentation/split-compares-pass.so.cc +++ b/instrumentation/split-compares-pass.so.cc @@ -1251,7 +1251,7 @@ size_t SplitComparesTransform::splitIntCompares(Module &M, unsigned bitw) { bool SplitComparesTransform::runOnModule(Module &M) { int bitw = 64; - size_t count; + size_t count = 0; char *bitw_env = getenv("AFL_LLVM_LAF_SPLIT_COMPARES_BITW"); if (!bitw_env) bitw_env = getenv("LAF_SPLIT_COMPARES_BITW"); @@ -1296,7 +1296,7 @@ bool SplitComparesTransform::runOnModule(Module &M) { switch (bitw) { case 64: - count = splitIntCompares(M, bitw); + count += splitIntCompares(M, bitw); /* if (!be_quiet) errs() << "Split-integer-compare-pass " << bitw << "bit: " << @@ -1309,7 +1309,7 @@ bool SplitComparesTransform::runOnModule(Module &M) { [[clang::fallthrough]]; /*FALLTHRU*/ /* FALLTHROUGH */ #endif case 32: - count = splitIntCompares(M, bitw); + count += splitIntCompares(M, bitw); /* if (!be_quiet) errs() << "Split-integer-compare-pass " << bitw << "bit: " << @@ -1322,7 +1322,7 @@ bool SplitComparesTransform::runOnModule(Module &M) { [[clang::fallthrough]]; /*FALLTHRU*/ /* FALLTHROUGH */ #endif case 16: - count = splitIntCompares(M, bitw); + count += splitIntCompares(M, bitw); /* if (!be_quiet) errs() << "Split-integer-compare-pass " << bitw << "bit: " << |