about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorAndrea Fioraldi <andreafioraldi@gmail.com>2020-06-03 09:57:44 +0200
committerAndrea Fioraldi <andreafioraldi@gmail.com>2020-06-03 09:57:44 +0200
commit9962de1a4c26d226b15d7bee64b483098fe62b3f (patch)
tree758ee7ec2730d0a7ee0f4e254404286b28f6a41a /src
parent304a72c1ff84be6c4d217d2bc3f94884425e853e (diff)
downloadafl++-9962de1a4c26d226b15d7bee64b483098fe62b3f.tar.gz
shared mem input for qemu persistent hook
Diffstat (limited to 'src')
-rw-r--r--src/afl-fuzz.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/afl-fuzz.c b/src/afl-fuzz.c
index ee9c0c67..aed1e958 100644
--- a/src/afl-fuzz.c
+++ b/src/afl-fuzz.c
@@ -556,6 +556,7 @@ int main(int argc, char **argv_orig, char **envp) {
 
         if (afl->fsrv.qemu_mode) { FATAL("Multiple -Q options not supported"); }
         afl->fsrv.qemu_mode = 1;
+        afl->shmem_testcase_mode = 1;
 
         if (!mem_limit_given) { afl->fsrv.mem_limit = MEM_LIMIT_QEMU; }
 
@@ -583,6 +584,7 @@ int main(int argc, char **argv_orig, char **envp) {
         if (afl->use_wine) { FATAL("Multiple -W options not supported"); }
         afl->fsrv.qemu_mode = 1;
         afl->use_wine = 1;
+        afl->shmem_testcase_mode = 1;
 
         if (!mem_limit_given) { afl->fsrv.mem_limit = 0; }