about summary refs log tree commit diff
path: root/include/afl-fuzz.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/afl-fuzz.h')
-rw-r--r--include/afl-fuzz.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/afl-fuzz.h b/include/afl-fuzz.h
index 895ca34e..fe3926a7 100644
--- a/include/afl-fuzz.h
+++ b/include/afl-fuzz.h
@@ -302,6 +302,21 @@ typedef struct MOpt_globals {
 
 extern char *power_names[POWER_SCHEDULES_NUM];
 
+typedef struct afl_env_vars {
+
+  u8 afl_skip_cpufreq, afl_exit_when_done, afl_no_affinity,
+      afl_skip_bin_check, afl_dumb_forksrv,
+      afl_import_first, afl_custom_mutator_only,
+      afl_no_ui, afl_force_ui, afl_i_dont_care_about_missing_crashes,
+      afl_bench_just_one, afl_bench_until_crash, afl_debug_child_output,
+      afl_autoresume;
+
+  u8 *afl_tmpdir, *afl_post_library, *afl_custom_mutator_library,
+      *afl_python_module, *afl_path, *afl_hang_tmout, *afl_skip_crashes,
+      *afl_preload;
+
+} afl_env_vars_t;
+
 typedef struct afl_state {
 
   /* Position of this state in the global states list */
@@ -309,6 +324,7 @@ typedef struct afl_state {
 
   afl_forkserver_t fsrv;
   sharedmem_t      shm;
+  afl_env_vars_t   afl_env;
 
   char **argv;                                            /* argv if needed */
 
@@ -704,6 +720,7 @@ struct custom_mutator {
 
 void afl_state_init(afl_state_t *);
 void afl_state_deinit(afl_state_t *);
+void read_afl_environment(afl_state_t *, char **);
 
 /**** Prototypes ****/