Skip to content

Commit 68b492b

Browse files
Merge pull request AFLplusplus#2604 from AFLplusplus/dev
push to stable
2 parents c8f0533 + cc2a4eb commit 68b492b

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/afl-forkserver.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,8 @@ void afl_fsrv_init(afl_forkserver_t *fsrv) {
329329
fsrv->uid_set = 0;
330330
fsrv->gid_set = 0;
331331

332+
fsrv->perm = DEFAULT_PERMISSION;
333+
332334
fsrv->init_child_func = fsrv_exec_child;
333335
list_append(&fsrv_list, fsrv);
334336

src/afl-fuzz-state.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,9 @@ void afl_state_init(afl_state_t *afl, uint32_t map_size) {
132132
afl->ijon_input_len = 0;
133133
afl->is_doing_ijon = 0;
134134

135+
afl->perm = DEFAULT_PERMISSION;
136+
afl->dir_perm = DEFAULT_DIRS_PERMISSION;
137+
135138
afl->fsrv.use_stdin = 1;
136139
afl->fsrv.map_size = map_size;
137140
// afl_state_t is not available in forkserver.c

0 commit comments

Comments
 (0)