starting shmap support for unicorn

This commit is contained in:
Dominik Maier
2020-05-31 04:13:41 +02:00
parent c0ed118ba5
commit ee14785f68
9 changed files with 56 additions and 36 deletions

View File

@ -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) {