about summary refs log tree commit diff
path: root/src/afl-fuzz-bitmap.c
diff options
context:
space:
mode:
authorAndrea Fioraldi <andreafioraldi@gmail.com>2019-10-08 12:40:05 +0200
committerAndrea Fioraldi <andreafioraldi@gmail.com>2019-10-08 12:40:05 +0200
commit125a59df91bb09f3288371185c15a48a08376bfe (patch)
tree18d703d66d32c55706f7f7bd30a813a9742327f2 /src/afl-fuzz-bitmap.c
parenteae4a9e1f89f82ea79568635842617cc64081bfc (diff)
parent20f009e927b8d98a595575e5d4366a437d6e7247 (diff)
downloadafl++-125a59df91bb09f3288371185c15a48a08376bfe.tar.gz
Merge branch 'master' of github.com:vanhauser-thc/AFLplusplus
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;