about summary refs log tree commit diff
path: root/include/common.h
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2021-03-19 23:55:32 +0100
committerGitHub <noreply@github.com>2021-03-19 23:55:32 +0100
commitbc0ff559f50ed73d1af904c4110bc149cd8eba91 (patch)
tree03c3314427f02533a8db3e06587ce3afe74a5f23 /include/common.h
parent749b03d812b76746b4a673f34a13fb0b067fd61d (diff)
parent090128b3f8b8bc80cf47ae1481b01c0509dc6357 (diff)
downloadafl++-bc0ff559f50ed73d1af904c4110bc149cd8eba91.tar.gz
Merge pull request #824 from fuzzah/dev
add AFL_TARGET_ENV to afl-fuzz
Diffstat (limited to 'include/common.h')
-rw-r--r--include/common.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h
index 46585c88..05137fb6 100644
--- a/include/common.h
+++ b/include/common.h
@@ -49,6 +49,10 @@ char **get_qemu_argv(u8 *own_loc, u8 **target_path_p, int argc, char **argv);
 char **get_wine_argv(u8 *own_loc, u8 **target_path_p, int argc, char **argv);
 char * get_afl_env(char *env);
 
+/* Extract env vars from input string and set them using setenv()
+   For use with AFL_TARGET_ENV, ... */
+u8 extract_and_set_env(u8 *env_str);
+
 extern u8  be_quiet;
 extern u8 *doc_path;                    /* path to documentation dir        */