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


The following commit has been merged in the debian/unstable branch:
commit 684399dc6ac927fe3ceb53f7afe927e66323ba3c
Author: Tomasz Kojm <tkojm at clamav.net>
Date:   Wed Oct 7 22:31:25 2009 +0200

    check if off_min == CLI_OFF_NONE

diff --git a/libclamav/matcher-bm.c b/libclamav/matcher-bm.c
index cedf363..9733785 100644
--- a/libclamav/matcher-bm.c
+++ b/libclamav/matcher-bm.c
@@ -363,7 +363,7 @@ int cli_bm_scanbuff(const unsigned char *buffer, uint32_t length, const char **v
 			    off_max = p->offset_max;
 			}
 			off = offset + i - p->prefix_length - BM_MIN_LENGTH + BM_BLOCK_SIZE;
-			if(off_max < off || off_min > off) {
+			if(off_min == CLI_OFF_NONE || off_max < off || off_min > off) {
 			    p = p->next;
 			    continue;
 			}

-- 
Debian repository for ClamAV



More information about the Pkg-clamav-commits mailing list