libclamav/readdb.c: fix compatibility issue with .zmd sigs (bb#1793)

0.96
Tomasz Kojm 16 years ago
parent 12c6a97e9b
commit 545247afb0
  1. 4
      ChangeLog
  2. 5
      libclamav/readdb.c

@ -1,3 +1,7 @@
Thu Jan 14 19:43:43 CET 2010 (tk)
---------------------------------
* libclamav/readdb.c: fix compatibility issue with .zmd sigs (bb#1793)
Tue Jan 12 14:39:55 CET 2010 (tk) Tue Jan 12 14:39:55 CET 2010 (tk)
--------------------------------- ---------------------------------
* libclamav: allow lsigs be anchored to specific containers (bb#1293), * libclamav: allow lsigs be anchored to specific containers (bb#1293),

@ -1813,7 +1813,7 @@ static int cli_loadmd(FILE *fs, struct cl_engine *engine, unsigned int *signo, i
continue; continue;
} }
new->encrypted = atoi(tokens[1]); new->encrypted = strcmp(tokens[1], "*") ? atoi(tokens[1]) : 2;
if(strcmp(tokens[2], "*") && cli_regcomp(&new->name, tokens[2], REG_EXTENDED | REG_NOSUB)) { if(strcmp(tokens[2], "*") && cli_regcomp(&new->name, tokens[2], REG_EXTENDED | REG_NOSUB)) {
cli_errmsg("cli_loadmd: Can't compile regular expression %s in signature for %s\n", tokens[2], tokens[0]); cli_errmsg("cli_loadmd: Can't compile regular expression %s in signature for %s\n", tokens[2], tokens[0]);
@ -1848,8 +1848,7 @@ static int cli_loadmd(FILE *fs, struct cl_engine *engine, unsigned int *signo, i
/* tokens[6] - not used */ /* tokens[6] - not used */
if(strcmp(tokens[7], "*")) new->filepos[0] = new->filepos[1] = strcmp(tokens[7], "*") ? atoi(tokens[7]) : CLI_OFF_ANY;
new->filepos[0] = new->filepos[1] = atoi(tokens[7]);
/* tokens[8] - not used */ /* tokens[8] - not used */

Loading…
Cancel
Save