about summary refs log tree commit diff
path: root/src/afl-showmap.c
diff options
context:
space:
mode:
authorDominik Maier <domenukk@gmail.com>2020-04-16 19:15:14 +0200
committerDominik Maier <domenukk@gmail.com>2020-04-16 19:15:14 +0200
commit69bd7c16eb3c6095e49d0d7a6dd2f69ea4bb9141 (patch)
tree076a39665f32679cf8722445f2f8ed2550803027 /src/afl-showmap.c
parent6940e136296d185391a34b5d829a759ac517594e (diff)
downloadafl++-69bd7c16eb3c6095e49d0d7a6dd2f69ea4bb9141.tar.gz
silence some clang warnings
Diffstat (limited to 'src/afl-showmap.c')
-rw-r--r--src/afl-showmap.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/afl-showmap.c b/src/afl-showmap.c
index 86386df3..61c1754f 100644
--- a/src/afl-showmap.c
+++ b/src/afl-showmap.c
@@ -569,6 +569,8 @@ int main(int argc, char **argv_orig, char **envp) {
         if (mem_limit_given) FATAL("Multiple -m options not supported");
         mem_limit_given = 1;
 
+        if (!optarg) FATAL("Wrong usage of -m");
+
         if (!strcmp(optarg, "none")) {
 
           fsrv->mem_limit = 0;
@@ -612,6 +614,8 @@ int main(int argc, char **argv_orig, char **envp) {
         if (timeout_given) FATAL("Multiple -t options not supported");
         timeout_given = 1;
 
+        if (!optarg) FATAL("Wrong usage of -t");
+
         if (strcmp(optarg, "none")) {
 
           fsrv->exec_tmout = atoi(optarg);