about summary refs log tree commit diff
diff options
context:
space:
mode:
authordloffre-snl <50888856+dloffre-snl@users.noreply.github.com>2021-09-02 17:19:18 -0600
committerGitHub <noreply@github.com>2021-09-03 01:19:18 +0200
commita9b9a76bbbe8dbd8a9a9048ec7a5d97149e223c4 (patch)
treefad9e7d8b6efe5e6edb94cc3764b16bb44c58331
parent6d6353d917949813b9f70751e921bbb132b52948 (diff)
downloadafl++-a9b9a76bbbe8dbd8a9a9048ec7a5d97149e223c4.tar.gz
Update symcc mutator to new afl_custom_queue_new_entry signature (#1087)
Co-authored-by: van Hauser <vh@thc.org>
-rw-r--r--custom_mutators/symcc/symcc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/custom_mutators/symcc/symcc.c b/custom_mutators/symcc/symcc.c
index 19218449..86f23343 100644
--- a/custom_mutators/symcc/symcc.c
+++ b/custom_mutators/symcc/symcc.c
@@ -129,7 +129,7 @@ uint8_t afl_custom_queue_new_entry(my_mutator_t * data,
 
   int pid = fork();
 
-  if (pid == -1) return;
+  if (pid == -1) return 0;
 
   if (pid) {
 
@@ -147,7 +147,7 @@ uint8_t afl_custom_queue_new_entry(my_mutator_t * data,
         if (r <= 0) {
 
           close(pipefd[1]);
-          return;
+          return 0;
 
         }