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-18 10:20:43 +0100
committervan Hauser <vh@thc.org>2020-12-18 10:20:43 +0100
commitea9db86bb86341e4e2b53c46204e3f86496e6ab9 (patch)
treeeff8e6ff55dcf61227bce17d6a6f245cf5888c24 /instrumentation/afl-compiler-rt.o.c
parent4ff9eb0e67cc70c8f9415fa5bc4df10916fb6f4c (diff)
downloadafl++-ea9db86bb86341e4e2b53c46204e3f86496e6ab9.tar.gz
mem error fix
Diffstat (limited to 'instrumentation/afl-compiler-rt.o.c')
-rw-r--r--instrumentation/afl-compiler-rt.o.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/instrumentation/afl-compiler-rt.o.c b/instrumentation/afl-compiler-rt.o.c
index b1df26db..cddde87c 100644
--- a/instrumentation/afl-compiler-rt.o.c
+++ b/instrumentation/afl-compiler-rt.o.c
@@ -236,8 +236,8 @@ static void __afl_map_shm(void) {
 
   if (__afl_final_loc) {
 
-    if (__afl_final_loc % 8)
-      __afl_final_loc = (((__afl_final_loc + 7) >> 3) << 3);
+    if (__afl_final_loc % 32)
+      __afl_final_loc = (((__afl_final_loc + 31) >> 5) << 5);
     __afl_map_size = __afl_final_loc;
 
     if (__afl_final_loc > MAP_SIZE) {