about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2023-09-13 09:39:06 +0200
committervanhauser-thc <vh@thc.org>2023-09-13 09:39:06 +0200
commit98eed79f5701726d6fe566832707f32ab6d42e3e (patch)
treea27e69ad864ac37eded58a2caff4a92751e3587e /src
parent3b835b7c8b2f73be6d5972951d049cef66c24abd (diff)
downloadafl++-98eed79f5701726d6fe566832707f32ab6d42e3e.tar.gz
-a default
Diffstat (limited to 'src')
-rw-r--r--src/afl-fuzz.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/afl-fuzz.c b/src/afl-fuzz.c
index f659395e..cf57702f 100644
--- a/src/afl-fuzz.c
+++ b/src/afl-fuzz.c
@@ -536,6 +536,10 @@ int main(int argc, char **argv_orig, char **envp) {
 
           afl->input_mode = 2;
 
+        } else if (!stricmp(optarg, "def") || !stricmp(optarg, "default")) {
+
+          afl->input_mode = 0;
+
         } else {
 
           FATAL("-a input mode needs to be \"text\" or \"binary\".");