sigtool/sigtool.c: drop compatibility limit

This commit is contained in:
Tomasz Kojm
2010-06-28 18:44:17 +02:00
parent c8abf22147
commit 566b044e2b
2 changed files with 4 additions and 15 deletions

View File

@@ -1,3 +1,7 @@
Mon Jun 28 18:42:48 CEST 2010 (tk)
----------------------------------
* sigtool/sigtool.c: drop compatibility limit
Thu Jun 24 20:04:02 CEST 2010 (tk)
----------------------------------
* libclamav: reduce memory usage for MD5 sigs (bb#2057)

View File

@@ -71,12 +71,6 @@
#define MAX_DEL_LOOKAHEAD 200
/*
* Force backward compatibility with the cdiff interpreter of clamav < 0.95
*/
#define COMPATIBILITY_LIMIT 980
static const struct dblist_s {
const char *name;
unsigned int count;
@@ -1639,15 +1633,6 @@ static int compare(const char *oldpath, const char *newpath, FILE *diff)
fprintf(diff, "ADD %s\n", nbuff);
}
}
#ifdef COMPATIBILITY_LIMIT
if(!cli_strbcasestr(newpath, ".cbc") && strlen(nbuff) > COMPATIBILITY_LIMIT) {
mprintf("!compare: COMPATIBILITY_LIMIT: Found too long line in new %s\n", newpath);
if(old)
fclose(old);
fclose(new);
return -1;
}
#endif
}
fclose(new);