Commit Graph

9 Commits

Author SHA1 Message Date
Tomasz Kojm
cc447ac82c configure, libclamav: fix compile issues on IRIX (bb#1532) 2009-08-04 23:17:28 +02:00
Török Edvin
2e11bcdfd9 performance improvements for URL matching (bb #725, bb #650):
* use a suffix AC-trie and a shift-or FSM to filter
* rewrite the URL regex in C
* use a perfect hash to lookup TLD and ccTLD, instead of a regex
* TODO: suffixes having a common prefix: loop over all of them
	cli_ac_free: multiple virname pointing to same location


git-svn: trunk@3978
2008-07-23 13:51:57 +00:00
Török Edvin
c3671221da introduce hashset_* functions
use a faster hash function
use hashset to load mdb signatures
regenerate files due to hash function change
enable hash function profiling during generation



git-svn: trunk@3589
2008-02-06 18:53:23 +00:00
Török Edvin
1d23b7deaa make iconv replacement function handle NULL args (bb #792)
git-svn: trunk@3539
2008-01-25 08:37:13 +00:00
Török Edvin
b8a505eeda optimize u16_normalize, encode as hex entities (Ȁ)
update dependencies to rebuild on hashtab.c change
support keys with common prefix by checking match length
update due to hashtab change


git-svn: trunk@3536
2008-01-23 20:19:14 +00:00
Török Edvin
cd75ab404e fix valid characters table for encoding name
skip \0 characters
account for alignfix when calculating offset
reset iconv state before reusing  
fix entity handling 
fix memory leaks reported by valgrind
remove unused fields


git-svn: trunk@3531
2008-01-23 14:22:16 +00:00
Török Edvin
b0b8398b48 * contrib/entitynorm:
* use fewer entities, browsers don't support all either.
		       	* update to generate code for new entconv.
		       	* no need for configure, use just a simple Makefile
			 (it is an internal tool)
  libclamav/entconv.c, hashtab.c, htmlnorm.c:
			* don't allocate memory for each entity_norm call.
			* don't touch length of mmaped area (bb #785)
			* update htmlnorm to use new entity_norm


git-svn: trunk@3515
2008-01-21 15:52:21 +00:00
Török Edvin
3c882206b1 Fix entity list generator to support more entities, including & (bb #391)
Include new entitylist generated using contrib/entitynorm/generate_entitylist (bb #391)
Fix bug in growing hash tables (must use hash on new  table) 


git-svn: trunk@2920
2007-03-08 20:30:49 +00:00
Sven Strickroth
a99111f050 remove old CVS-stuff and make the repository look more like SVN
git-svn: trunk@2755
2007-02-17 19:02:20 +00:00