about summary refs log tree commit diff
path: root/src/afl-fuzz.c
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-08-11 03:40:12 +0200
committerGitHub <noreply@github.com>2020-08-11 03:40:12 +0200
commit67dac152269c48245dca88140b1238b36d5e0954 (patch)
tree81e8f262c1dc403e34c7b287ba68c81bb37cb4d0 /src/afl-fuzz.c
parent9cf8637fab8cf3fe8aba5660015bbe7177805807 (diff)
parent50e76fce123f01ec83024f3bbd3190f2e1a6d387 (diff)
downloadafl++-67dac152269c48245dca88140b1238b36d5e0954.tar.gz
Merge branch 'debug' into taint
Diffstat (limited to 'src/afl-fuzz.c')
-rw-r--r--src/afl-fuzz.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/afl-fuzz.c b/src/afl-fuzz.c
index fc9cbb6c..11db004d 100644
--- a/src/afl-fuzz.c
+++ b/src/afl-fuzz.c
@@ -300,9 +300,12 @@ int main(int argc, char **argv_orig, char **envp) {
 
         if (afl->cpu_to_bind != -1) FATAL("Multiple -b options not supported");
 
-        if (sscanf(optarg, "%u", &afl->cpu_to_bind) < 0 || optarg[0] == '-')
+        if (sscanf(optarg, "%d", &afl->cpu_to_bind) < 0) {
+
           FATAL("Bad syntax used for -b");
 
+        }
+
         break;
 
       }