mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-16 11:58:08 +00:00
sync afl-as setup with afl-llvm-rt (add __afl_area_ptr[0] = 1)
This commit is contained in:
@ -261,6 +261,7 @@ static const u8* main_payload_32 =
|
|||||||
" je __afl_setup_abort\n"
|
" je __afl_setup_abort\n"
|
||||||
"\n"
|
"\n"
|
||||||
#endif
|
#endif
|
||||||
|
" movb $1, (%eax)\n"
|
||||||
" /* Store the address of the SHM region. */\n"
|
" /* Store the address of the SHM region. */\n"
|
||||||
"\n"
|
"\n"
|
||||||
" movl %eax, __afl_area_ptr\n"
|
" movl %eax, __afl_area_ptr\n"
|
||||||
@ -563,6 +564,7 @@ static const u8* main_payload_64 =
|
|||||||
" je __afl_setup_abort\n"
|
" je __afl_setup_abort\n"
|
||||||
"\n"
|
"\n"
|
||||||
#endif
|
#endif
|
||||||
|
" movb $1, (%rax)\n"
|
||||||
" /* Store the address of the SHM region. */\n"
|
" /* Store the address of the SHM region. */\n"
|
||||||
"\n"
|
"\n"
|
||||||
" movq %rax, %rdx\n"
|
" movq %rax, %rdx\n"
|
||||||
|
Reference in New Issue
Block a user