.pdb/.wdb files now use colon as delimiter

git-svn: trunk@2444
remotes/push_mirror/metadata
Tomasz Kojm 19 years ago
parent 3071071ed7
commit a891c2d9d6
  1. 4
      clamav-devel/ChangeLog
  2. 7
      clamav-devel/libclamav/regex_list.c

@ -1,3 +1,7 @@
Sat Oct 28 17:33:06 CEST 2006 (tk)
----------------------------------
* libclamav/regex_list.c: .pdb/.wdb files now use colon as delimiter
Sat Oct 28 15:52:42 CEST 2006 (tk) Sat Oct 28 15:52:42 CEST 2006 (tk)
---------------------------------- ----------------------------------
* libclamav/elf.c: make the code reentrant (closes bug#57) * libclamav/elf.c: make the code reentrant (closes bug#57)

@ -19,6 +19,9 @@
* MA 02110-1301, USA. * MA 02110-1301, USA.
* *
* $Log: regex_list.c,v $ * $Log: regex_list.c,v $
* Revision 1.12 2006/10/28 15:34:40 tkojm
* .pdb/.wdb files now use colon as delimiter
*
* Revision 1.11 2006/10/15 19:16:33 tkojm * Revision 1.11 2006/10/15 19:16:33 tkojm
* allow loading multiple .pdb/.wdb files * allow loading multiple .pdb/.wdb files
* *
@ -348,7 +351,7 @@ int regex_list_match(struct regex_matcher* matcher,const char* real_url,const ch
return CL_EMEM; return CL_EMEM;
strncpy(buffer,real_url,real_len); strncpy(buffer,real_url,real_len);
buffer[real_len]= (!is_whitelist && hostOnly) ? '\0' : ' '; buffer[real_len]= (!is_whitelist && hostOnly) ? '\0' : ':';
if(!hostOnly || is_whitelist) { if(!hostOnly || is_whitelist) {
strncpy(buffer+real_len+1,display_url,display_len); strncpy(buffer+real_len+1,display_url,display_len);
buffer[buffer_len]=0; buffer[buffer_len]=0;
@ -557,7 +560,7 @@ int load_regex_matcher(struct regex_matcher* matcher,FILE* fd,unsigned int optio
cli_chomp(buffer); cli_chomp(buffer);
if(!*buffer) if(!*buffer)
continue;/* skip empty lines */ continue;/* skip empty lines */
pattern = strchr(buffer,' '); pattern = strchr(buffer,':');
if(!pattern) { if(!pattern) {
cli_errmsg("Malformed regex list line %d\n",line); cli_errmsg("Malformed regex list line %d\n",line);
fatal_error(matcher); fatal_error(matcher);

Loading…
Cancel
Save