about summary refs log tree commit diff
path: root/instrumentation/afl-compiler-rt.o.c
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-12-11 11:19:26 +0100
committervan Hauser <vh@thc.org>2020-12-11 11:19:26 +0100
commit2bf68a0bf45fb2bb3bc0f574f20959a62c9f8239 (patch)
tree9452e9bc752dccbec05ac87928e2cf32a1bafd5a /instrumentation/afl-compiler-rt.o.c
parent8a1acac559edb66e8e246e73508cec541a9fc530 (diff)
downloadafl++-2bf68a0bf45fb2bb3bc0f574f20959a62c9f8239.tar.gz
fix MMAP
Diffstat (limited to 'instrumentation/afl-compiler-rt.o.c')
-rw-r--r--instrumentation/afl-compiler-rt.o.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/instrumentation/afl-compiler-rt.o.c b/instrumentation/afl-compiler-rt.o.c
index 99dcbb67..afe0839e 100644
--- a/instrumentation/afl-compiler-rt.o.c
+++ b/instrumentation/afl-compiler-rt.o.c
@@ -1107,7 +1107,7 @@ void __sanitizer_cov_trace_pc_guard_init(uint32_t *start, uint32_t *stop) {
      to avoid duplicate calls (which can happen as an artifact of the underlying
      implementation in LLVM). */
 
-  *(start++) = R(MAP_SIZE - 1) + 1;
+  *(start++) = ++__afl_final_loc;
 
   while (start < stop) {