diff options
author | Leon Weiß <leon.weiss@rub.de> | 2024-02-22 15:55:18 +0100 |
---|---|---|
committer | Leon Weiß <leon.weiss@rub.de> | 2024-02-22 15:55:18 +0100 |
commit | 07e0b391260d007f9dc52329dc51887fe568f109 (patch) | |
tree | abd8814809edfead42d542e25db059033dd18af6 /src | |
parent | 98238ed7630e6a5b135f520b8511548776b1b2ff (diff) | |
download | afl++-07e0b391260d007f9dc52329dc51887fe568f109.tar.gz |
Do not circumvent sanity checks from arg parsing
Diffstat (limited to 'src')
-rw-r--r-- | src/afl-fuzz.c | 5 |
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; } |