From 8bffd28b4c357b315acb9cecd92cbf2b734a625a Mon Sep 17 00:00:00 2001 From: "Dongjia \"toka\" Zhang" Date: Thu, 16 Feb 2023 10:29:24 +0900 Subject: [PATCH] fix (#1076) --- libafl/src/executors/forkserver.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libafl/src/executors/forkserver.rs b/libafl/src/executors/forkserver.rs index 8d5d6939da..51e915e487 100644 --- a/libafl/src/executors/forkserver.rs +++ b/libafl/src/executors/forkserver.rs @@ -735,7 +735,7 @@ impl<'a, SP> ForkserverExecutorBuilder<'a, SP> { } log::info!("All right - fork server is up."); - if status & FS_OPT_MAPSIZE == FS_OPT_MAPSIZE { + if status & FS_OPT_ENABLED == FS_OPT_ENABLED && status & FS_OPT_MAPSIZE == FS_OPT_MAPSIZE { let mut map_size = fs_opt_get_mapsize(status); // When 0, we assume that map_size was filled by the user or const /* TODO autofill map size from the observer