diff options
author | van Hauser <vh@thc.org> | 2021-10-30 17:05:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-30 17:05:10 +0200 |
commit | 94ab015a48b0bad396969741fd5253701d3e51db (patch) | |
tree | 155bcc41bdec06bb7446022af317eab102392c44 | |
parent | 873f5a979e6245deb8ef9659152e2af034f85ce2 (diff) | |
parent | 45b8e057934b5f565013f29f4f461aaca051a56d (diff) | |
download | afl++-94ab015a48b0bad396969741fd5253701d3e51db.tar.gz |
Merge pull request #1135 from kcwu/fix-pcguard-off-by-1
fix off by one bug of PCGUARD instrumentation
-rw-r--r-- | instrumentation/SanitizerCoverageLTO.so.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/instrumentation/SanitizerCoverageLTO.so.cc b/instrumentation/SanitizerCoverageLTO.so.cc index d90fa867..7a3d8c4d 100644 --- a/instrumentation/SanitizerCoverageLTO.so.cc +++ b/instrumentation/SanitizerCoverageLTO.so.cc @@ -1049,7 +1049,7 @@ bool ModuleSanitizerCoverage::instrumentModule( uint32_t write_loc = afl_global_id; - if (afl_global_id % 8) write_loc = (((afl_global_id + 8) >> 3) << 3); + write_loc = (((afl_global_id + 8) >> 3) << 3); GlobalVariable *AFLFinalLoc = new GlobalVariable(M, Int32Tyi, true, GlobalValue::ExternalLinkage, 0, |