about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2020-02-03 22:31:36 +0100
committerhexcoder- <heiko@hexco.de>2020-02-03 22:31:36 +0100
commit0f25a2b4342b75e071c215303dc706b2cf204954 (patch)
tree29d9de6a515b66e8fb22c4e963fd2810e90f7ff7 /src
parent1775c8a6ff333c25390d4db3a0c57fd6c49de42a (diff)
downloadafl++-0f25a2b4342b75e071c215303dc706b2cf204954.tar.gz
small checks for -A and -i options
Diffstat (limited to 'src')
-rw-r--r--src/afl-showmap.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/afl-showmap.c b/src/afl-showmap.c
index 0aa5c158..06dbbf8e 100644
--- a/src/afl-showmap.c
+++ b/src/afl-showmap.c
@@ -634,7 +634,7 @@ static void usage(u8* argv0) {
 
       "Other settings:\n\n"
 
-      "  -i dir        - process all files in this directory, -o most be a directory\n"
+      "  -i dir        - process all files in this directory, -o must be a directory\n"
       "                  and each bitmap will be written there individually.\n"
       "  -q            - sink program's output and don't show messages\n"
       "  -e            - show edge coverage only, ignore hit counts\n"
@@ -721,6 +721,7 @@ int main(int argc, char** argv) {
     switch (opt) {
 
       case 'i':
+        if (at_file) FATAL("-i and -A are mutually exclusive");
         if (in_dir) FATAL("Multiple -i options not supported");
         in_dir = optarg;
         break;
@@ -815,6 +816,7 @@ int main(int argc, char** argv) {
         break;
 
       case 'A':
+        if (in_dir) FATAL("-i and -A are mutually exclusive");
 
         /* Another afl-cmin specific feature. */
         at_file = optarg;