clamav icon indicating copy to clipboard operation
clamav copied to clipboard

Defer or avoid file MD5 calculation when cache is disabled

Open antchan2 opened this issue 1 year ago • 0 comments

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.

antchan2 avatar Feb 06 '24 01:02 antchan2