mirror of
https://github.com/Cisco-Talos/clamav.git
synced 2026-02-01 10:31:33 -05:00
There is a bug where freshclam fails to detect if a downloaded CDIFF is empty. In 0.103 this, combined with a CDN caching issue could result in freshclam downloading a daily.cvd but failing to update, putting it in a sort of infinite loop. In 0.104 this issue manifests slightly differently, requiring freshclam to run up to 3x before you get over the empty-CVD hump and are back to normal updates. This commit updates an existing cdiff test with the zero-byte cdiff + an out-of-date CVD to confirm the bug. The following commit will fix it.