about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJosh Bundt (tr0gd0r) <wideglide@users.noreply.github.com>2021-03-20 04:34:40 -0400
committerGitHub <noreply@github.com>2021-03-20 09:34:40 +0100
commit33dd2ce02196598267764c5e36a3bf9812fd3320 (patch)
tree73218a7cbddc2919596b00f714187061847e8e86
parentbc0ff559f50ed73d1af904c4110bc149cd8eba91 (diff)
downloadafl++-33dd2ce02196598267764c5e36a3bf9812fd3320.tar.gz
close fds when executing one by one. (#835)
* closes fd when executing one by one.

* clean aflpp_driver
-rw-r--r--GNUmakefile1
-rw-r--r--utils/aflpp_driver/aflpp_driver.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/GNUmakefile b/GNUmakefile
index f885f998..ac8fe796 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -558,6 +558,7 @@ clean:
 	-$(MAKE) -f GNUmakefile.gcc_plugin clean
 	$(MAKE) -C utils/libdislocator clean
 	$(MAKE) -C utils/libtokencap clean
+	$(MAKE) -C utils/aflpp_driver clean
 	$(MAKE) -C utils/afl_network_proxy clean
 	$(MAKE) -C utils/socket_fuzzing clean
 	$(MAKE) -C utils/argv_fuzzing clean
diff --git a/utils/aflpp_driver/aflpp_driver.c b/utils/aflpp_driver/aflpp_driver.c
index f0f3a47d..e828d0d8 100644
--- a/utils/aflpp_driver/aflpp_driver.c
+++ b/utils/aflpp_driver/aflpp_driver.c
@@ -186,6 +186,7 @@ static int ExecuteFilesOnyByOne(int argc, char **argv) {
       printf("Execution successful.\n");
 
     }
+    close(fd);
 
   }