libclamav/matcher-bm.c: micro-optimization

0.96
Tomasz Kojm 16 years ago
parent f1e02ed252
commit f28db33f85
  1. 4
      ChangeLog
  2. 4
      libclamav/matcher-bm.c

@ -1,3 +1,7 @@
Thu Aug 20 00:34:39 CEST 2009 (tk)
----------------------------------
* libclamav/matcher-bm.c: micro-optimization
Tue Aug 18 23:52:20 CEST 2009 (tk)
----------------------------------
* libclamav/cpio.c: wrap unistd.h, reported by Nigel Horne

@ -178,6 +178,10 @@ int cli_bm_scanbuff(const unsigned char *buffer, uint32_t length, const char **v
if(shift == 0) {
prefix = buffer[i - BM_MIN_LENGTH + BM_BLOCK_SIZE];
p = root->bm_suffix[idx];
if(p && p->cnt == 1 && p->pattern0 != prefix) {
i++;
continue;
}
pchain = 0;
while(p) {
if(p->pattern0 != prefix) {

Loading…
Cancel
Save