mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-13 02:28:09 +00:00
starting shmap support for unicorn
This commit is contained in:
@ -572,6 +572,7 @@ int main(int argc, char **argv_orig, char **envp) {
|
||||
|
||||
if (afl->unicorn_mode) { FATAL("Multiple -U options not supported"); }
|
||||
afl->unicorn_mode = 1;
|
||||
afl->shmem_testcase_mode = 1;
|
||||
|
||||
if (!mem_limit_given) { afl->fsrv.mem_limit = MEM_LIMIT_UNICORN; }
|
||||
|
||||
@ -1178,6 +1179,12 @@ int main(int argc, char **argv_orig, char **envp) {
|
||||
|
||||
check_binary(afl, argv[optind]);
|
||||
|
||||
if (afl->shmem_testcase_mode) {
|
||||
|
||||
setup_testcase_shmem(afl);
|
||||
|
||||
}
|
||||
|
||||
afl->start_time = get_cur_time();
|
||||
|
||||
if (afl->fsrv.qemu_mode) {
|
||||
|
Reference in New Issue
Block a user