mirror of
https://github.com/Cisco-Talos/clamav.git
synced 2026-02-01 10:31:33 -05:00
Zero-byte CDIFFs are sometimes issued in place of real CDIFFs to force freshclam to download a whole CVD because using a CDIFF would be less efficient or otherwise problematic. There is a bug where freshclam fails to detect if a downloaded CDIFF is empty. This issue prints an ugly warning message and may require the user to run freshclam up to 3x before they get over the empty-CVD hump and are back to normal updates. This commit resolves this bug by checking the size of the downloaded CDIFF patch and returning an appropriate status code.