[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:19:51 UTC 2010


The following commit has been merged in the debian/unstable branch:
commit 8cf6cab95dbbb0297d20e85c6552ea89552c8166
Author: Tomasz Kojm <tkojm at clamav.net>
Date:   Thu Feb 11 20:46:07 2010 +0100

    chk prefix_length

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

-- 
Debian repository for ClamAV



More information about the Pkg-clamav-commits mailing list