Skip to content

Commit 901360b

Browse files
committed
sync afl-as setup with afl-llvm-rt (add __afl_area_ptr[0] = 1)
1 parent c8295e1 commit 901360b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/afl-as.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ static const u8* main_payload_32 =
261261
" je __afl_setup_abort\n"
262262
"\n"
263263
#endif
264+
" movb $1, (%eax)\n"
264265
" /* Store the address of the SHM region. */\n"
265266
"\n"
266267
" movl %eax, __afl_area_ptr\n"
@@ -563,6 +564,7 @@ static const u8* main_payload_64 =
563564
" je __afl_setup_abort\n"
564565
"\n"
565566
#endif
567+
" movb $1, (%rax)\n"
566568
" /* Store the address of the SHM region. */\n"
567569
"\n"
568570
" movq %rax, %rdx\n"

0 commit comments

Comments
 (0)