[Pkg-clamav-commits] [SCM] Debian repository for ClamAV branch, debian/unstable, updated. debian/0.95+dfsg-1-6156-g094ec9b

aCaB acab at clamav.net
Sun Apr 4 01:11:09 UTC 2010


The following commit has been merged in the debian/unstable branch:
commit fd183cf921892128e65effc3dffdcdcfbb48a1de
Author: aCaB <acab at clamav.net>
Date:   Tue Dec 8 17:34:14 2009 +0100

    allow spreading up to 103% due to rounding

diff --git a/libclamav/readdb.c b/libclamav/readdb.c
index 1d7e744..cf4d932 100644
--- a/libclamav/readdb.c
+++ b/libclamav/readdb.c
@@ -670,7 +670,7 @@ static int cli_loadidb(FILE *fs, struct cl_engine *engine, unsigned int *signo,
 	metric->gsum = (hash[2] << 4) | hash[3];
 	metric->bsum = (hash[4] << 4) | hash[5];
 	metric->ccount = (hash[6] << 4) | hash[7];
-	if(metric->rsum + metric->gsum + metric->bsum > 100 || metric->ccount > 100) {
+	if(metric->rsum + metric->gsum + metric->bsum > 103 || metric->ccount > 100) {
 	    cli_errmsg("cli_loadidb: Malformed hash at line %u (bad spread data)\n", line);
 	    ret = CL_EMALFDB;
 	    break;

-- 
Debian repository for ClamAV



More information about the Pkg-clamav-commits mailing list