about summary refs log tree commit diff
path: root/src/afl-showmap.c
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2019-12-30 22:01:36 +0100
committervan Hauser <vh@thc.org>2019-12-30 22:01:36 +0100
commit878a80de7f5f4fb0733bd48c974b498c0010514e (patch)
tree97351114bfb4fd0d5a1fb8afdea5e08b5dd33afc /src/afl-showmap.c
parentf7e1397d989762eaf4375d2f79fde09d86e86f72 (diff)
downloadafl++-878a80de7f5f4fb0733bd48c974b498c0010514e.tar.gz
critical bugfix for afl-tmin
Diffstat (limited to 'src/afl-showmap.c')
-rw-r--r--src/afl-showmap.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/afl-showmap.c b/src/afl-showmap.c
index 94bbd421..393b3772 100644
--- a/src/afl-showmap.c
+++ b/src/afl-showmap.c
@@ -72,11 +72,12 @@ static u32 total, highest;             /* tuple content information         */
 
 static u64 mem_limit = MEM_LIMIT;      /* Memory limit (MB)                 */
 
-static u8 quiet_mode,                  /* Hide non-essential messages?      */
+u8 quiet_mode,                         /* Hide non-essential messages?      */
     edges_only,                        /* Ignore hit counts?                */
     raw_instr_output,                  /* Do not apply AFL filters          */
     cmin_mode,                         /* Generate output in afl-cmin mode? */
     binary_mode,                       /* Write output as a binary map      */
+    use_stdin = 1,                     /* use stdin - unused here           */
     keep_cores;                        /* Allow coredumps?                  */
 
 static volatile u8 stop_soon,          /* Ctrl-C pressed?                   */
@@ -535,7 +536,7 @@ int main(int argc, char** argv) {
 
   doc_path = access(DOC_PATH, F_OK) ? "docs" : DOC_PATH;
 
-  while ((opt = getopt(argc, argv, "+o:m:t:A:eqZQUWbcrh")) > 0)
+  while ((opt = getopt(argc, argv, "+o:f:m:t:A:eqZQUWbcrh")) > 0)
 
     switch (opt) {
 
@@ -583,6 +584,13 @@ int main(int argc, char** argv) {
 
       break;
 
+      case 'f':  // only in here to avoid a compiler warning for use_stdin
+
+        use_stdin = 0;
+        FATAL("Option -f is not supported in afl-showmap");
+
+        break;
+
       case 't':
 
         if (timeout_given) FATAL("Multiple -t options not supported");