... | ... |
@@ -1,3 +1,7 @@ |
1 |
+Mon Sep 7 15:03:11 CEST 2009 (tk) |
|
2 |
+---------------------------------- |
|
3 |
+ * libclamav/matcher-bm.c: fix uninitialized value warning |
|
4 |
+ |
|
1 | 5 |
Mon Sep 7 03:45:18 CEST 2009 (acab) |
2 | 6 |
------------------------------------ |
3 | 7 |
* libclamav/scanners.c: properly scan text files with a mail container |
... | ... |
@@ -277,7 +277,7 @@ int cli_bm_scanbuff(const unsigned char *buffer, uint32_t length, const char **v |
277 | 277 |
if(p && p->cnt == 1 && p->pattern0 != prefix) { |
278 | 278 |
if(offdata) { |
279 | 279 |
off = offset + i - BM_MIN_LENGTH + BM_BLOCK_SIZE; |
280 |
- for(; off >= offdata->offtab[offdata->pos] && offdata->pos < offdata->cnt; offdata->pos++); |
|
280 |
+ for(; offdata->pos < offdata->cnt && off >= offdata->offtab[offdata->pos]; offdata->pos++); |
|
281 | 281 |
if(offdata->pos == offdata->cnt || off >= offdata->offtab[offdata->pos]) |
282 | 282 |
return CL_CLEAN; |
283 | 283 |
i += offdata->offtab[offdata->pos] - off; |
... | ... |
@@ -372,7 +372,7 @@ int cli_bm_scanbuff(const unsigned char *buffer, uint32_t length, const char **v |
372 | 372 |
|
373 | 373 |
if(offdata) { |
374 | 374 |
off = offset + i - BM_MIN_LENGTH + BM_BLOCK_SIZE; |
375 |
- for(; off >= offdata->offtab[offdata->pos] && offdata->pos < offdata->cnt; offdata->pos++); |
|
375 |
+ for(; offdata->pos < offdata->cnt && off >= offdata->offtab[offdata->pos]; offdata->pos++); |
|
376 | 376 |
if(offdata->pos == offdata->cnt || off >= offdata->offtab[offdata->pos]) |
377 | 377 |
return CL_CLEAN; |
378 | 378 |
i += offdata->offtab[offdata->pos] - off; |