about summary refs log tree commit diff
path: root/utils/argv_fuzzing/argv_fuzz_demo.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils/argv_fuzzing/argv_fuzz_demo.c')
-rw-r--r--utils/argv_fuzzing/argv_fuzz_demo.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/utils/argv_fuzzing/argv_fuzz_demo.c b/utils/argv_fuzzing/argv_fuzz_demo.c
index 5fe4d704..6ab1e2e5 100644
--- a/utils/argv_fuzzing/argv_fuzz_demo.c
+++ b/utils/argv_fuzzing/argv_fuzz_demo.c
@@ -3,6 +3,7 @@
 #include "argv-fuzz-inl.h"
 
 int main(int argc, char **argv) {
+
   // Initialize the argv array for use with the AFL (American Fuzzy Lop) tool
   AFL_INIT_ARGV();
 
@@ -12,12 +13,16 @@ int main(int argc, char **argv) {
     an error message is printed. If the values do match, the program
     calls the abort() function. */
   if (argc > 1 && strcmp(argv[1], "XYZ") == 0) {
-    if (strcmp(argv[2], "TEST2") == 0) {
-      abort();
-    }
+
+    if (strcmp(argv[2], "TEST2") == 0) { abort(); }
+
   } else {
+
     printf("Bad number of arguments!\n");
+
   }
 
   return 0;
-}
\ No newline at end of file
+
+}
+