From 943b8a3d7ab56a393fe2fe3060a584b35beba1eb Mon Sep 17 00:00:00 2001 From: Nguyễn Gia Phong Date: Mon, 25 Nov 2024 14:53:28 +0900 Subject: Pass dataflow map shm to fork server --- include/config.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/config.h') diff --git a/include/config.h b/include/config.h index d8177a75..8cc344da 100644 --- a/include/config.h +++ b/include/config.h @@ -403,6 +403,7 @@ /* Environment variable used to pass SHM ID to the called program. */ #define SHM_ENV_VAR "__AFL_SHM_ID" +#define DFG_SHM_ENV_VAR "__AFL_DFG_SHM_ID" /* Environment variable used to pass SHM FUZZ ID to the called program. */ @@ -470,6 +471,9 @@ #define MAP_INITIAL_SIZE MAP_SIZE #endif +#define DFG_MAP_SIZE_POW2 16 +#define DFG_MAP_SIZE (1U << DFG_MAP_SIZE_POW2) + /* Maximum allocator request size (keep well under INT_MAX): */ #define MAX_ALLOC 0x40000000 -- cgit 1.4.1