mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-17 20:28:08 +00:00
print OKF if an environment variable is successfully loaded - feebdack to this please ...
This commit is contained in:
@ -38,6 +38,7 @@
|
||||
|
||||
u8* target_path; /* Path to target binary */
|
||||
extern u8 use_stdin;
|
||||
extern u8 be_quiet;
|
||||
|
||||
void detect_file_args(char** argv, u8* prog_in) {
|
||||
|
||||
@ -313,3 +314,15 @@ void check_environment_vars(char** envp) {
|
||||
|
||||
}
|
||||
|
||||
char* get_afl_env(char* env) {
|
||||
|
||||
char* val;
|
||||
|
||||
if ((val = getenv(env)) != NULL)
|
||||
if (!be_quiet)
|
||||
OKF("Loaded environment variable %s with value %s\n", env, val);
|
||||
|
||||
return val;
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user