allow -i - resume with AFL_TMPDIR

This commit is contained in:
van Hauser
2020-02-18 21:09:44 +01:00
parent a971fc8f36
commit 273e3aed10

View File

@ -654,7 +654,7 @@ int main(int argc, char** argv, char** envp) {
if (!strcmp(in_dir, out_dir))
FATAL("Input and output directories can't be the same");
if ((tmp_dir = getenv("AFL_TMPDIR")) != NULL) {
if ((tmp_dir = getenv("AFL_TMPDIR")) != NULL && !in_place_resume) {
char tmpfile[file_extension
? strlen(tmp_dir) + 1 + 10 + 1 + strlen(file_extension) + 1