git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@716 77e5149b-7576-45b1-b177-96237e5ba77b
Tomasz Kojm authored on 2004/08/03 09:08:04... | ... |
@@ -1,3 +1,7 @@ |
1 |
+Tue Aug 3 02:03:17 CEST 2004 (tk) |
|
2 |
+---------------------------------- |
|
3 |
+ * libclamav: matcher-bm: fix scan boundary |
|
4 |
+ |
|
1 | 5 |
Mon Aug 2 19:03:33 CEST 2004 (tk) |
2 | 6 |
---------------------------------- |
3 | 7 |
* libclamav: pe: integrate Petite unpacker from aCaB (not yet activated) |
... | ... |
@@ -125,7 +125,7 @@ int cli_bm_scanbuff(const char *buffer, unsigned int length, const char **virnam |
125 | 125 |
char prefix; |
126 | 126 |
|
127 | 127 |
|
128 |
- for(i = BM_MIN_LENGTH - BM_BLOCK_SIZE; i < length; ) { |
|
128 |
+ for(i = BM_MIN_LENGTH - BM_BLOCK_SIZE; i < length - BM_BLOCK_SIZE + 1; ) { |
|
129 | 129 |
idx = 211 * ((unsigned char) buffer[i]) + 37 * ((unsigned char) buffer[i + 1]) + (unsigned char) buffer[i + 2]; |
130 | 130 |
|
131 | 131 |
shift = root->bm_shift[idx]; |