about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--utils/aflpp_driver/aflpp_driver.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/utils/aflpp_driver/aflpp_driver.c b/utils/aflpp_driver/aflpp_driver.c
index 4e8f466d..1104a81e 100644
--- a/utils/aflpp_driver/aflpp_driver.c
+++ b/utils/aflpp_driver/aflpp_driver.c
@@ -279,7 +279,9 @@ __attribute__((weak)) int main(int argc, char **argv) {
 
   */
 
-  if (argc < 2 || strncmp(argv[1], "-h", 2) == 0)
+  if (argc < 2 || strncmp(argv[1], "-h", 2) == 0 ||
+      strcmp(argv[1], "--help") == 0) {
+
     printf(
         "============================== INFO ================================\n"
         "This binary is built for afl++.\n"
@@ -296,6 +298,13 @@ __attribute__((weak)) int main(int argc, char **argv) {
         "option\n"
         "===================================================================\n",
         argv[0], argv[0]);
+    if (strncmp(argv[1], "-h", 2) == 0 || strcmp(argv[1], "--help") == 0) {
+
+      exit(0);
+
+    }
+
+  }
 
   return LLVMFuzzerRunDriver(&argc, &argv, LLVMFuzzerTestOneInput);