libclamav/scanners.c: fix whitelisting of scripts (bb#1706)

0.96
Tomasz Kojm 16 years ago
parent c921686126
commit 3e9193dd05
  1. 4
      ChangeLog
  2. 2
      libclamav/scanners.c

@ -1,3 +1,7 @@
Fri Oct 2 14:33:09 CEST 2009 (tk)
----------------------------------
* libclamav/scanners.c: fix whitelisting of scripts (bb#1706)
Wed Sep 30 19:41:43 EEST 2009 (edwin)
-------------------------------------
* configure{.in,}: Only use -fno-strict-aliasing for gcc-4.3+ to avoid bugs

@ -1043,6 +1043,8 @@ static int cli_scanscript(int desc, cli_ctx *ctx)
/* when we flush the buffer also scan */
if(cli_scanbuff(state.out, state.out_pos, offset, ctx, CL_TYPE_TEXT_ASCII, mdata) == CL_VIRUS) {
ret = CL_VIRUS;
if(ofd != -1)
ret = cli_checkfp(ofd, ctx) ? CL_CLEAN : CL_VIRUS;
break;
}
if(ctx->scanned)

Loading…
Cancel
Save