about summary refs log tree commit diff
path: root/src/afl-fuzz-bitmap.c
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2019-10-08 11:53:31 +0200
committervan Hauser <vh@thc.org>2019-10-08 11:53:31 +0200
commit20f009e927b8d98a595575e5d4366a437d6e7247 (patch)
tree660665d516f0c45c3e2e9116c90afed5064fb558 /src/afl-fuzz-bitmap.c
parent45bb85cd8f7aecd15a8621db2918c2cecc97094f (diff)
downloadafl++-20f009e927b8d98a595575e5d4366a437d6e7247.tar.gz
added afl-fuzz -I cmdline option
Diffstat (limited to 'src/afl-fuzz-bitmap.c')
-rw-r--r--src/afl-fuzz-bitmap.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/afl-fuzz-bitmap.c b/src/afl-fuzz-bitmap.c
index d867a318..746fc982 100644
--- a/src/afl-fuzz-bitmap.c
+++ b/src/afl-fuzz-bitmap.c
@@ -683,6 +683,10 @@ u8 save_if_interesting(char** argv, void* mem, u32 len, u8 fault) {
 #endif                                                    /* ^!SIMPLE_FILES */
 
       ++unique_crashes;
+      
+      if (infoexec) // if the user wants to be informed on new crashes - do that
+        if (system(infoexec) == -1)
+          hnb += 0; // we dont care if system errors, but we dont want a compiler warning either
 
       last_crash_time = get_cur_time();
       last_crash_execs = total_execs;