... | ... |
@@ -1,3 +1,7 @@ |
1 |
+Fri Feb 4 14:35:32 CET 2011 (tk) |
|
2 |
+--------------------------------- |
|
3 |
+ * libclamav/matcher-bm.c: fix error message (bb#2513) |
|
4 |
+ |
|
1 | 5 |
Thu Feb 3 16:40:24 CET 2011 (acab) |
2 | 6 |
----------------------------------- |
3 | 7 |
* libclamav/matcher-hash.c: stop leaking virusnames (nopool mode) |
... | ... |
@@ -355,6 +355,10 @@ int cli_bm_scanbuff(const unsigned char *buffer, uint32_t length, const char **v |
355 | 355 |
if(found && p->length + p->prefix_length == j) { |
356 | 356 |
if(!offdata && (p->offset_min != CLI_OFF_ANY)) { |
357 | 357 |
if(p->offdata[0] != CLI_OFF_ABSOLUTE) { |
358 |
+ if(!info) { |
|
359 |
+ p = p->next; |
|
360 |
+ continue; |
|
361 |
+ } |
|
358 | 362 |
ret = cli_caloff(NULL, info, root->type, p->offdata, &off_min, &off_max); |
359 | 363 |
if(ret != CL_SUCCESS) { |
360 | 364 |
cli_errmsg("cli_bm_scanbuff: Can't calculate relative offset in signature for %s\n", p->virname); |