about summary refs log tree commit diff
path: root/instrumentation/afl-compiler-rt.o.c
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2021-12-02 10:41:24 +0100
committervanhauser-thc <vh@thc.org>2021-12-02 10:41:24 +0100
commitca7144161f900a0f5c8b76922a0102fbcc291f2c (patch)
treeb613e31142b9598c0f385c3e40ff25366e292035 /instrumentation/afl-compiler-rt.o.c
parent80d5afa3738c06a376f8a256129537a9cbdd2229 (diff)
downloadafl++-ca7144161f900a0f5c8b76922a0102fbcc291f2c.tar.gz
fixes
Diffstat (limited to 'instrumentation/afl-compiler-rt.o.c')
-rw-r--r--instrumentation/afl-compiler-rt.o.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/instrumentation/afl-compiler-rt.o.c b/instrumentation/afl-compiler-rt.o.c
index 5d198ada..cc73e5ec 100644
--- a/instrumentation/afl-compiler-rt.o.c
+++ b/instrumentation/afl-compiler-rt.o.c
@@ -275,6 +275,8 @@ static void __afl_map_shm(void) {
 
   char *id_str = getenv(SHM_ENV_VAR);
 
+  if (__afl_final_loc) { ++__afl_final_loc; }  // as we count starting 0
+
   if (__afl_final_loc) {
 
     __afl_map_size = __afl_final_loc;