diff options
author | Nguyễn Gia Phong <cnx@loang.net> | 2024-11-25 14:53:28 +0900 |
---|---|---|
committer | Nguyễn Gia Phong <cnx@loang.net> | 2024-11-25 14:53:28 +0900 |
commit | 943b8a3d7ab56a393fe2fe3060a584b35beba1eb (patch) | |
tree | 39f48b4c9d54cceba5254c522ed520190b69144c /include/config.h | |
parent | 82752fe38db590184f7f1725954f906da397d91c (diff) | |
download | afl++-943b8a3d7ab56a393fe2fe3060a584b35beba1eb.tar.gz |
Pass dataflow map shm to fork server
Diffstat (limited to 'include/config.h')
-rw-r--r-- | include/config.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 |