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

Tomasz Kojm tkojm at clamav.net
Sun Apr 4 01:07:54 UTC 2010


The following commit has been merged in the debian/unstable branch:
commit 0354e96264f2504998d3a73dc10d68ff80be79d2
Author: Tomasz Kojm <tkojm at clamav.net>
Date:   Tue Oct 13 22:45:58 2009 +0200

    fix maxpatlen

diff --git a/libclamav/matcher-ac.c b/libclamav/matcher-ac.c
index efe859e..e75c652 100644
--- a/libclamav/matcher-ac.c
+++ b/libclamav/matcher-ac.c
@@ -1620,7 +1620,7 @@ int cli_ac_addsig(struct cli_matcher *root, const char *virname, const char *hex
     }
 
     if(new->length > root->maxpatlen)
-	root->maxpatlen = new->length;
+	root->maxpatlen = new->length + new->prefix_length;
 
     new->virname = cli_mpool_virname(root->mempool, (char *) virname, options & CL_DB_OFFICIAL);
     if(!new->virname) {

-- 
Debian repository for ClamAV



More information about the Pkg-clamav-commits mailing list