mirror of
https://github.com/Cisco-Talos/clamav.git
synced 2025-10-19 10:23:17 +00:00
Scan performance optimization for TNEF message scans
Uncompressed ZIP-based TNEF message attachments, like OOXML office document attachments, get double-extracted because of embedded file type recognition. To prevent excessive scan times, disable embedded file type recognition for TNEF files and relay on TNEF parsing to extract attachments. CLAM-2885
This commit is contained in:
parent
6e43931a1c
commit
3c27ee262a
1 changed files with 3 additions and 1 deletions
|
@ -3650,7 +3650,9 @@ static cl_error_t scanraw(cli_ctx *ctx, cli_file_t type, uint8_t typercg, cli_fi
|
|||
// Omit OLD TAR files because it's a raw archive format that we can extract and scan manually.
|
||||
(type != CL_TYPE_OLD_TAR) &&
|
||||
// Omit POSIX TAR files because it's a raw archive format that we can extract and scan manually.
|
||||
(type != CL_TYPE_POSIX_TAR)) {
|
||||
(type != CL_TYPE_POSIX_TAR) &&
|
||||
// Omit TNEF files because TNEF message attachments are raw / not compressed. Document and ZIP attachments would be likely to have double-extraction issues.
|
||||
(type != CL_TYPE_TNEF)) {
|
||||
/*
|
||||
* Enable file type recognition scan mode if requested, except for some problematic types (above).
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue