added AFL_AS_FORCE_INSTRUMENT env

This commit is contained in:
van Hauser
2019-12-29 19:38:45 +01:00
parent 65b4141cd3
commit cd2cae720b
3 changed files with 10 additions and 1 deletions

View File

@ -208,8 +208,11 @@ static void edit_params(int argc, char** argv) {
NSS. */
if (strncmp(input_file, tmp_dir, strlen(tmp_dir)) &&
strncmp(input_file, "/var/tmp/", 9) && strncmp(input_file, "/tmp/", 5))
strncmp(input_file, "/var/tmp/", 9) && strncmp(input_file, "/tmp/", 5)
&& getenv("AFL_AS_FORCE_INSTRUMENT") == NULL)
pass_thru = 1;
else if (getenv("AFL_AS_FORCE_INSTRUMENT"))
unsetenv("AFL_AS_FORCE_INSTRUMENT");
}