On Mar 01, 2005, at 16:05, Tomasz Kojm wrote:
On Tue, 1 Mar 2005 15:56:51 -0500 Dale Walsh <[EMAIL PROTECTED]> wrote:
62.25k (127488 - DHASH( 211 *256 + 37 * 256 + 256))
Upon what have you based this (incorrect) calculation?
-- oo ..... Tomasz Kojm <[EMAIL PROTECTED]>
From your code in matcher-bm.c __________________________________________________________
/* * Copyright (C) 2004 Tomasz Kojm <[EMAIL PROTECTED]> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "clamav.h" #include "memory.h" #include "others.h" #include "cltypes.h" #include "matcher.h"
/* TODO: Check prefix regularity and automatically transfer some signatures
* to AC
*/
#define BM_MIN_LENGTH 3 /* #define BM_TEST_OFFSET 5 */ #define BM_BLOCK_SIZE 3
#define MIN(a,b) (a < b) ? a : b
#define HASH(a,b,c) 211 * (unsigned char) a + 37 * (unsigned char) b + (unsigned char) c
#define DHASH(a,b,c) 211 * a + 37 * b + c
int cli_bm_addpatt(struct cl_node *root, struct cli_bm_patt *pattern) {
_______________________________________________ http://lurker.clamav.net/list/clamav-users.html