about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorLeon Weiß <leon.weiss@rub.de>2024-02-22 15:55:18 +0100
committerLeon Weiß <leon.weiss@rub.de>2024-02-22 15:55:18 +0100
commit07e0b391260d007f9dc52329dc51887fe568f109 (patch)
treeabd8814809edfead42d542e25db059033dd18af6 /src
parent98238ed7630e6a5b135f520b8511548776b1b2ff (diff)
downloadafl++-07e0b391260d007f9dc52329dc51887fe568f109.tar.gz
Do not circumvent sanity checks from arg parsing
Diffstat (limited to 'src')
-rw-r--r--src/afl-fuzz.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/afl-fuzz.c b/src/afl-fuzz.c
index 30babad3..0ddb8880 100644
--- a/src/afl-fuzz.c
+++ b/src/afl-fuzz.c
@@ -2495,8 +2495,9 @@ int main(int argc, char **argv_orig, char **envp) {
         if (!afl->queue_buf[entry]->disabled)
           if ((afl->queue_buf[entry]->exec_us/1000) > max_ms)
             max_ms = afl->queue_buf[entry]->exec_us/1000;
-
-      afl->fsrv.exec_tmout = max_ms;
+      
+      if (max_ms > afl->fsrv.exec_tmout)
+        afl->fsrv.exec_tmout = max_ms;
       afl->timeout_given = 1;
 
     }