about summary refs log tree commit diff
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2020-02-24 23:19:56 +0100
committerhexcoder- <heiko@hexco.de>2020-02-24 23:19:56 +0100
commit901360b902b57d538eebaa38b7d20fe0eb639c33 (patch)
tree50dbeef646a1751b4bbc60a2599547ed2302f84e
parentc8295e148510cb4b1ef5447882ca48df14c40f8e (diff)
downloadafl++-901360b902b57d538eebaa38b7d20fe0eb639c33.tar.gz
sync afl-as setup with afl-llvm-rt (add __afl_area_ptr[0] = 1)
-rw-r--r--include/afl-as.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/afl-as.h b/include/afl-as.h
index bd5e734a..de9fb646 100644
--- a/include/afl-as.h
+++ b/include/afl-as.h
@@ -261,6 +261,7 @@ static const u8* main_payload_32 =
   "  je   __afl_setup_abort\n"
   "\n"
 #endif
+  "  movb $1, (%eax)\n"
   "  /* Store the address of the SHM region. */\n"
   "\n"
   "  movl %eax, __afl_area_ptr\n"
@@ -563,6 +564,7 @@ static const u8* main_payload_64 =
   "  je   __afl_setup_abort\n"
   "\n"
 #endif
+  "  movb $1, (%rax)\n"
   "  /* Store the address of the SHM region. */\n"
   "\n"
   "  movq %rax, %rdx\n"