I have never tried myself, but checking in
clamd.conf file I can see that the size of files can be set manually.
Changing the following values to "n" appears to be the workaround for the file size limit which sets it to unlimited:
However, I know that currently ClamAV has hard file limit to 4GB. However, from my understanding by setting to "n" along with
BytecodeUnsigned to "yes" in config file will do the workaround and of course there are a few particulars to consider before doing that, particulars such as:
- the amount of memory present/available on server should be way bigger than the file size because ClamAV is mapping the file into memory.
- The swap file system, the size of swap fs should be calculated according to the ram size on server (just in case it hits the swap).
If the above to particular are not taken care of it with an extra attention ClamAV won't be able to scan or better, it will eat all of systems memory and therefore killed by OEM Killer.