complete implemenation, still no test

This commit is contained in:
vanhauser-thc
2021-03-06 19:12:25 +01:00
parent 81442ba3f9
commit 4a0d4c50fc
5 changed files with 69 additions and 35 deletions

View File

@ -390,7 +390,7 @@ typedef struct afl_env_vars {
*afl_hang_tmout, *afl_forksrv_init_tmout, *afl_skip_crashes, *afl_preload,
*afl_max_det_extras, *afl_statsd_host, *afl_statsd_port,
*afl_crash_exitcode, *afl_statsd_tags_flavor, *afl_testcache_size,
*afl_testcache_entries, *afl_kill_signal, *afl_persistent_replay;
*afl_testcache_entries, *afl_kill_signal, *afl_persistent_record;
} afl_env_vars_t;

View File

@ -95,12 +95,13 @@ typedef struct afl_forkserver {
char *cmplog_binary; /* the name of the cmplog binary */
/* persistent mode replay functionality */
u32 persistent_replay; /* persistent replay setting */
u32 persistent_replay_idx; /* persistent replay cache ptr */
u32 persistent_replay_cnt; /* persistent replay counter */
u8 * persistent_replay_dir;
u8 ** persistent_replay_data;
u32 **persistent_replay_len;
u32 persistent_record; /* persistent replay setting */
u32 persistent_record_idx; /* persistent replay cache ptr */
u32 persistent_record_cnt; /* persistent replay counter */
u8 * persistent_record_dir;
u8 ** persistent_record_data;
u32 **persistent_record_len;
s32 persistent_record_pid;
/* Function to kick off the forkserver child */
void (*init_child_func)(struct afl_forkserver *fsrv, char **argv);