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

Török Edvin edwin at clamav.net
Sun Apr 4 01:14:33 UTC 2010


The following commit has been merged in the debian/unstable branch:
commit 1d406931e29655ea80f79c6b16d82b2fc97f57b9
Author: Török Edvin <edwin at clamav.net>
Date:   Tue Jan 12 16:57:22 2010 +0200

    Fix array size for parsing .ldb tokens.
    
    Looks like a wrong merge of the bytecode branch, str_tokenize was updated to use
    LDB_TOKENS+1, but not the variable's declaration!

diff --git a/libclamav/readdb.c b/libclamav/readdb.c
index 0ade69c..d4293e7 100644
--- a/libclamav/readdb.c
+++ b/libclamav/readdb.c
@@ -1109,7 +1109,7 @@ static int load_oneldb(char *buffer, int chkpua, int chkign, struct cl_engine *e
 {
     const char *sig, *virname, *offset, *logic;
     struct cli_ac_lsig **newtable, *lsig;
-    char *tokens[LDB_TOKENS], *pt;
+    char *tokens[LDB_TOKENS+1], *pt;
     int i, subsigs, tokens_count;
     unsigned short target = 0;
     struct cli_matcher *root;

-- 
Debian repository for ClamAV



More information about the Pkg-clamav-commits mailing list