clamav
clamav copied to clipboard
Defer or avoid file MD5 calculation when cache is disabled
If the clean cache is not used (CL_ENGINE_DISABLE_CACHE=1
), it is not necessary to calculate the file's MD5 checksum in preparation for cache lookup. This change modifies cli_magic_scan
to skip the MD5 calculation if the cache is disabled.