[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 00:58:56 UTC 2010
The following commit has been merged in the debian/unstable branch:
commit 2f767ff7a83eab34a59e0b482e947a214ed4a3db
Author: Tomasz Kojm <tkojm at clamav.net>
Date: Wed Jul 15 11:21:36 2009 +0200
libclamav/filetypes.c: fix off-by-one error (bb#1639)
diff --git a/ChangeLog b/ChangeLog
index ef7b6a8..38b21fd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Wed Jul 15 11:20:56 CEST 2009 (tk)
+----------------------------------
+ * libclamav/filetypes.c: fix off-by-one error (bb#1639)
+
Wed Jul 15 08:46:35 CEST 2009 (tk)
----------------------------------
* libclamav/mspack.c: fix valgrind warnings about use of uninitialized
diff --git a/libclamav/filetypes.c b/libclamav/filetypes.c
index 6746abf..aafea65 100644
--- a/libclamav/filetypes.c
+++ b/libclamav/filetypes.c
@@ -216,7 +216,6 @@ cli_file_t cli_filetype2(int desc, const struct cl_engine *engine)
* However when detecting whether a file is HTML or not, we need exact conversion.
* (just eliminating zeros and matching would introduce false positives */
if(encoding_normalize_toascii(&in_area, encoding, &out_area) >= 0 && out_area.length > 0) {
- out_area.buffer[out_area.length] = '\0';
if(cli_ac_initdata(&mdata, root->ac_partsigs, root->ac_lsigs, CLI_DEFAULT_AC_TRACKLEN))
return ret;
--
Debian repository for ClamAV
More information about the Pkg-clamav-commits
mailing list