[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:03:36 UTC 2010


The following commit has been merged in the debian/unstable branch:
commit fedd1ac587e5179a7329e55af8ad02d497d4c2da
Author: Tomasz Kojm <tkojm at clamav.net>
Date:   Tue Sep 1 20:21:54 2009 +0200

    fix initial shift

diff --git a/libclamav/matcher-bm.c b/libclamav/matcher-bm.c
index 61f1d75..49b248f 100644
--- a/libclamav/matcher-bm.c
+++ b/libclamav/matcher-bm.c
@@ -264,7 +264,7 @@ int cli_bm_scanbuff(const unsigned char *buffer, uint32_t length, const char **v
     if(offdata) {
 	if(offdata->pos == offdata->cnt)
 	    return CL_CLEAN;
-	i += offdata->offtab[offdata->pos];
+	i += offdata->offtab[offdata->pos] - offset;
     }
     for(; i < length - BM_BLOCK_SIZE + 1; ) {
 	idx = HASH(buffer[i], buffer[i + 1], buffer[i + 2]);

-- 
Debian repository for ClamAV



More information about the Pkg-clamav-commits mailing list