mirror of
https://github.com/Cisco-Talos/clamav.git
synced 2025-10-19 10:23:17 +00:00
Adds --max-scantime clamscan option and MaxScanTime clamd config option.
--max-scantime replaces the --timelimit clamscan option that had been experimental. Default max-scantime set to 2 minutes (120000 milliseconds).
This commit is contained in:
parent
83afeb7126
commit
6a0abb897a
14 changed files with 199 additions and 100 deletions
|
@ -930,6 +930,11 @@ cl_error_t cli_unzip(cli_ctx *ctx)
|
|||
ret = CL_EMAXFILES;
|
||||
}
|
||||
|
||||
if (cli_checktimelimit(ctx) != CL_SUCCESS) {
|
||||
cli_dbgmsg("cli_unzip: Time limit reached (max: %u)\n", ctx->engine->maxscantime);
|
||||
ret = CL_ETIMEOUT;
|
||||
}
|
||||
|
||||
/*
|
||||
* Detect overlapping files and zip bombs.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue