libclamav/matcher-ac.c: fix handling of VI/MACRO special offsets (bb#1957)

0.96
Tomasz Kojm 15 years ago
parent 89044fa72a
commit 8ff82a6851
  1. 4
      ChangeLog
  2. 4
      libclamav/matcher-ac.c

@ -1,3 +1,7 @@
Mon Apr 26 16:06:56 CEST 2010 (tk)
----------------------------------
* libclamav/matcher-ac.c: fix handling of VI/MACRO special offsets (bb#1957)
Fri Apr 23 21:38:19 EEST 2010 (edwin)
-------------------------------------
* configure: fix Apple-style universal build (bb #1988).

@ -1182,13 +1182,13 @@ int cli_ac_scanbuff(const unsigned char *buffer, uint32_t length, const char **v
continue;
}
realoff = offset + bp - pt->prefix_length;
if(patt->offdata[0] == CLI_OFF_VERSION) {
if(pt->offdata[0] == CLI_OFF_VERSION) {
if(!cli_hashset_contains_maybe_noalloc(&mdata->vinfo, realoff)) {
pt = pt->next_same;
continue;
}
cli_dbgmsg("cli_ac_scanbuff: VI match for offset %x\n", realoff);
} else if (patt->offdata[0] == CLI_OFF_MACRO) {
} else if(pt->offdata[0] == CLI_OFF_MACRO) {
mdata->macro_lastmatch[patt->offdata[1]] = realoff;
pt = pt->next_same;
continue;

Loading…
Cancel
Save