Fix segfault on Solaris

git-svn: trunk@2325
remotes/push_mirror/metadata
Nigel Horne 20 years ago
parent 0b768f7367
commit 62b2ecc705
  1. 4
      clamav-devel/ChangeLog
  2. 9
      clamav-devel/libclamav/regex_list.c

@ -1,3 +1,7 @@
Wed Sep 27 20:15:20 BST 2006 (njh)
----------------------------------
* libclamav/regex_list.c: Fix segfault on Solaris when running --debug
Wed Sep 27 17:37:42 BST 2006 (njh)
----------------------------------
* clamav-milter: --report sometimes failed

@ -19,6 +19,9 @@
* MA 02110-1301, USA.
*
* $Log: regex_list.c,v $
* Revision 1.6 2006/09/27 19:14:49 njh
* Fix segfault on Solaris
*
* Revision 1.5 2006/09/26 18:55:36 njh
* Fixed portability issues
*
@ -250,10 +253,10 @@ int regex_list_match(struct regex_matcher* matcher,const char* real_url,const ch
strncpy(buffer,real_url,real_len);
buffer[real_len]=hostOnly ? '\0' : ' ';
if(!hostOnly) {
strncpy(buffer+real_len+1,display_url,display_len);
buffer[buffer_len]=0;
strncpy(buffer+real_len+1,display_url,display_len);
buffer[buffer_len]=0;
}
cli_dbgmsg("Looking up in regex_list: %s\n");
cli_dbgmsg("Looking up in regex_list: %s\n", buffer);
rc = cli_ac_scanbuff(buffer,buffer_len,info,hostOnly ? matcher->root_hosts : matcher->root_urls,&partcnt,0,0,&partoff,0,-1,NULL);
if(!rc && !hostOnly)

Loading…
Cancel
Save