[Pkg-clamav-commits] [SCM] Debian repository for ClamAV branch, debian/unstable, updated. debian/0.95+dfsg-1-6156-g094ec9b
Tomasz Kojm
tkojm at clamav.net
Sun Apr 4 01:06:49 UTC 2010
The following commit has been merged in the debian/unstable branch:
commit 3e9193dd051778244990d2fd2efe6163d8b7478d
Author: Tomasz Kojm <tkojm at clamav.net>
Date: Fri Oct 2 14:33:57 2009 +0200
libclamav/scanners.c: fix whitelisting of scripts (bb#1706)
diff --git a/ChangeLog b/ChangeLog
index f44cac4..a457004 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/libclamav/scanners.c b/libclamav/scanners.c
index 492cd38..df18de6 100644
--- a/libclamav/scanners.c
+++ b/libclamav/scanners.c
@@ -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)
--
Debian repository for ClamAV
More information about the Pkg-clamav-commits
mailing list