aboutsummaryrefslogtreecommitdiff
path: root/src/afl-fuzz-bitmap.c
diff options
context:
space:
mode:
authorDavid Carlier <devnexen@gmail.com>2019-12-06 18:43:15 +0000
committerDavid Carlier <devnexen@gmail.com>2019-12-06 18:43:15 +0000
commitef43a4f82ed099b77acada1083a31c76958a18c8 (patch)
tree91c21a1a13f59f2674da55181416f9ea30148917 /src/afl-fuzz-bitmap.c
parent8bc0b646f0f6ede198e1e25d3c6e721b113d6865 (diff)
downloadafl++-ef43a4f82ed099b77acada1083a31c76958a18c8.tar.gz
IOS build fix.
system call is disabled on this platform.
Diffstat (limited to 'src/afl-fuzz-bitmap.c')
-rw-r--r--src/afl-fuzz-bitmap.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/afl-fuzz-bitmap.c b/src/afl-fuzz-bitmap.c
index 0329421c..8f00611c 100644
--- a/src/afl-fuzz-bitmap.c
+++ b/src/afl-fuzz-bitmap.c
@@ -683,12 +683,16 @@ 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
+ if (infoexec) { // if the user wants to be informed on new crashes - do
+#if !TARGET_OS_IPHONE
// that
if (system(infoexec) == -1)
hnb += 0; // we dont care if system errors, but we dont want a
// compiler warning either
+#else
+ WARNF("command execution unsupported");
+#endif
+ }
last_crash_time = get_cur_time();
last_crash_execs = total_execs;