mirror of
https://github.com/Cisco-Talos/clamav.git
synced 2026-05-06 22:55:49 -04:00
compatibility with new matcher extension
git-svn: trunk@3590
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
Wed Feb 6 21:30:55 CET 2008 (tk)
|
||||
---------------------------------
|
||||
* libclamav/regex_list.c: compatibility with new matcher extension
|
||||
|
||||
Wed Feb 6 20:36:05 EET 2008 (edwin)
|
||||
------------------------------------
|
||||
* contrib/entitynorm/, libclamav/hashtab.[ch], readdb.c, matcher.h, entitylist.h, encoding_aliases.h:
|
||||
|
||||
@@ -60,6 +60,7 @@
|
||||
#include "others.h"
|
||||
#include "regex_list.h"
|
||||
#include "matcher-ac.h"
|
||||
#include "matcher.h"
|
||||
#include "str.h"
|
||||
#include "readdb.h"
|
||||
|
||||
@@ -462,6 +463,7 @@ static int add_regex_list_element(struct cli_matcher* root,const char* pattern,c
|
||||
new->offset = 0;
|
||||
new->target = 0;
|
||||
new->length = len;
|
||||
new->ch[0] = new->ch[1] |= CLI_MATCH_IGNORE;
|
||||
if(new->length > root->maxpatlen)
|
||||
root->maxpatlen = new->length;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user