diff options
author | van Hauser <vh@thc.org> | 2020-08-12 10:41:09 +0200 |
---|---|---|
committer | van Hauser <vh@thc.org> | 2020-08-12 10:41:09 +0200 |
commit | 132b57cf030fd206bc54d6c810868c48b17445bb (patch) | |
tree | 4764dc512183955f738543982756520a24da30ab | |
parent | ee548df05f13ce1ef065d1aa08e55c14d34b3719 (diff) | |
download | afl++-132b57cf030fd206bc54d6c810868c48b17445bb.tar.gz |
nozero for llvm pcguard
-rw-r--r-- | docs/Changelog.md | 1 | ||||
-rw-r--r-- | llvm_mode/afl-llvm-rt.o.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/docs/Changelog.md b/docs/Changelog.md index 25c7a761..eda57a1a 100644 --- a/docs/Changelog.md +++ b/docs/Changelog.md @@ -26,6 +26,7 @@ sending a mail to <afl-users+subscribe@googlegroups.com>. AFL_LLVM_WHITELIST and AFL_LLVM_INSTRUMENT_FILE are deprecated and are matched to AFL_LLVM_ALLOWLIST). The format is compatible to llvm sancov, and also supports function matching! + - added nozero counting to trace-pc/pcgard - fixes for laf-intel float splitting (thanks to mark-griffin for reporting) - LTO: switch default to the dynamic memory map, set AFL_LLVM_MAP_ADDR diff --git a/llvm_mode/afl-llvm-rt.o.c b/llvm_mode/afl-llvm-rt.o.c index 623e3a20..8a073318 100644 --- a/llvm_mode/afl-llvm-rt.o.c +++ b/llvm_mode/afl-llvm-rt.o.c @@ -904,7 +904,7 @@ void __sanitizer_cov_trace_pc_guard(uint32_t *guard) { */ - __afl_area_ptr[*guard]++; + __afl_area_ptr[*guard] = __afl_area_ptr[*guard] + 1 + (__afl_area_ptr[*guard] == 255 ? 1 : 0); } |