[Pkg-clamav-commits] [SCM] Debian repository for ClamAV branch, debian/unstable, updated. debian/0.95+dfsg-1-6156-g094ec9b

aCaB acab at clamav.net
Sun Apr 4 01:07:19 UTC 2010


The following commit has been merged in the debian/unstable branch:
commit 306d7ac7a50a48ea7df66e59a8c885146c0e1584
Author: aCaB <acab at clamav.net>
Date:   Thu Oct 8 22:50:16 2009 +0200

    fix typo in filetype2

diff --git a/libclamav/filetypes.c b/libclamav/filetypes.c
index d42d060..69e7d77 100644
--- a/libclamav/filetypes.c
+++ b/libclamav/filetypes.c
@@ -200,7 +200,7 @@ cli_file_t cli_filetype2(fmap_t *map, const struct cl_engine *engine)
 		     * If we can't don't try to detect HTML sig, since
 		     * we just tried that above, and failed */
 		    if((encoding = encoding_detect_bom(buff, bread))) {
-			    unsigned char decodedbuff[sizeof(buff)*2];
+			    unsigned char decodedbuff[(MAGIC_BUFFER_SIZE+1)*2];
 			    m_area_t in_area, out_area;
 
 			    in_area.buffer = (unsigned char *) buff;

-- 
Debian repository for ClamAV



More information about the Pkg-clamav-commits mailing list