aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2023-11-30 11:52:10 +0100
committervanhauser-thc <vh@thc.org>2023-11-30 11:52:10 +0100
commit1fa285079f895b3e0b5b347830ce8a7ab980c691 (patch)
treeb8ee1ffd9fd73770d69b49b8b3272684deae1726 /utils
parent39be50e2a80443224cc781e4630714df977f52c0 (diff)
downloadafl++-1fa285079f895b3e0b5b347830ce8a7ab980c691.tar.gz
nit
Diffstat (limited to 'utils')
-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);