about summary refs log tree commit diff
diff options
context:
space:
mode:
-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 32dbc53d..50b4e2c5 100644
--- a/instrumentation/afl-compiler-rt.o.c
+++ b/instrumentation/afl-compiler-rt.o.c
@@ -1741,7 +1741,7 @@ static int area_is_valid(void *ptr, size_t len) {
     char *page = (char *)((uintptr_t)p & ~(page_size - 1)) + page_size;
     if (page >= p + len) { return 0; }  // no isnt, return fail
     len = page - p - len;
-    r = syscall(SYS_write, __afl_dummy_fd[1], p, len);
+    r = syscall(SYS_write, __afl_dummy_fd[1], page, len);
 
   }