Török Edvin
b611b5ff71
initial support for matching URLs against MD5 hashes
...
git-svn: trunk@4049
18 years ago
Török Edvin
a2d14e06b9
add more unit-tests
...
fix matching bugs in regex_list
git-svn: trunk@4020
18 years ago
Török Edvin
a497dce52d
fix compiler warnings
...
constify
git-svn: trunk@4019
18 years ago
Török Edvin
9ee053feab
handle multiple matches (bb #1110 )
...
update tests for regex, reenable test
git-svn: trunk@4018
18 years ago
Tomasz Kojm
710a22f179
libclamav/matcher-ac.c: add support for returning multiple matches in cli_ac_scanbuff()
...
git-svn: trunk@4017
18 years ago
Török Edvin
acee0f956d
fix segfault in regex_list_done due to uninitialised value.
...
make valgrind testing script parse valgrind's output better
git-svn: trunk@3995
18 years ago
Török Edvin
10290ba3eb
allow custom data to be associated with patterns (such as a regex) via a void*
...
field.
Fix memory leaks, and valgrind problems in regex_list_done.
git-svn: trunk@3994
18 years ago
Tomasz Kojm
677fc4ba3b
libclamav: add initial support for logical signatures (bb#896)
...
git-svn: trunk@3993
18 years ago
Török Edvin
3dcc2d784e
more tests for regex
...
run unit-tests under valgrind if available.
git-svn: trunk@3990
18 years ago
Török Edvin
82167b0a77
remove remaining CL_DEBUG, and add missing file
...
git-svn: trunk@3989
18 years ago
Török Edvin
250f2bc11d
fix memory leak
...
git-svn: trunk@3986
18 years ago
Török Edvin
5ee56e4103
split up regex_list.
...
begin testing for regex_suffix
git-svn: trunk@3985
18 years ago
Török Edvin
9828566c2a
unbreak make check
...
git-svn: trunk@3979
18 years ago
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
18 years ago
Tomasz Kojm
e8ae4fae02
faster loading of uncompressed .cld files
...
git-svn: trunk@3854
18 years ago
Tomasz Kojm
2023340a41
update copyrights and stick more files to GPLv2; move and add more credits to the AUTHORS file; add COPYING.BSD
...
git-svn: trunk@3749
18 years ago
Tomasz Kojm
5025967e6d
use limits->maxfiles instead of MAX_EMBEDDED_OBJ for ZIP-SFX
...
git-svn: trunk@3668
18 years ago
Tomasz Kojm
6038397ea6
filetype detection improvements
...
git-svn: trunk@3662
18 years ago
Török Edvin
d6df9ffb5a
use pthread_cond_* instead of usleep() in MULTISCAN (bb #758 )
...
enable entconv by default
others.c: fix compiler warning
regex_list.c: remove unused code, because a better solution is scheduled for 0.94 (bb #725 )
git-svn: trunk@3627
18 years ago
aCaB
2455584143
sync to trunk
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/newlimits@3599 77e5149b-7576-45b1-b177-96237e5ba77b
18 years ago
Tomasz Kojm
6b656d3608
compatibility with new matcher extension
...
git-svn: trunk@3590
18 years ago
Török Edvin
c305bb5792
fix -pedantic warning.
...
git-svn: trunk@3587
18 years ago
Török Edvin
75fe12511f
when domain matchers, preserve full subdomain(bb #721 )
...
git-svn: trunk@3560
18 years ago
Török Edvin
5a9a9989b8
avoid holes in data-structures due to alignment.
...
git-svn: trunk@3459
18 years ago
Tomasz Kojm
056d95dc5a
add (initial) support for direct loading of CVD files
...
git-svn: trunk@3435
18 years ago
Tomasz Kojm
e81da56bb5
avoid circular list construction, when different versions of same .wdb is loaded twice. (BB #718 )
...
git-svn: trunk@3383
18 years ago
Tomasz Kojm
3d53538b51
add cli_ac_setdepth(), --dev-ac-depth, DevACOnly, DevACDepth
...
git-svn: trunk@3365
18 years ago
Török Edvin
8ea27f5c18
fix some warnings
...
git-svn: trunk@3275
18 years ago
Török Edvin
7191e94bd9
avoid some false positives when there are spaces in URL.
...
git-svn: trunk@3263
18 years ago
Török Edvin
97ba1aed4b
more improvements to the algorithm.
...
git-svn: trunk@3257
18 years ago
Török Edvin
ecd2643ba9
fix off by one substring logic.
...
git-svn: trunk@3256
18 years ago
Török Edvin
b5341ac052
more improvements to the url extraction algorithm (more to come later).
...
Reduces false negatives.
False positives ratio should be same.
git-svn: trunk@3254
18 years ago
Török Edvin
53ff1b0490
add regcomp(), regexec() impl. from OpenBSD's libc.
...
This code is licensed under the 3-clause BSD.
This will be used instead of system provided regexec()/regcomp() to
have consistent behaviour across platforms.
git-svn: trunk@3225
19 years ago
Török Edvin
4c748c36e3
make debug output look better (patch from Sven)
...
git-svn: trunk@3172
19 years ago
Török Edvin
38a0019993
stick to GPLv2
...
git-svn: trunk@3121
19 years ago
Török Edvin
c33ec4701a
fix false substring matches, related to bb #534 , #551
...
git-svn: trunk@3117
19 years ago
Török Edvin
c5fdb4c8b7
match M:/H: signatures only at end of string (bb #534 )
...
Fix possible memory leak (must call cli_ac_freedata)
git-svn: trunk@3099
19 years ago
Török Edvin
dbf3c4d9ba
continue draft of new regex_list.c
...
git-svn: trunk@3098
19 years ago
Török Edvin
b9a533ece2
first draft of new implementation for regex_list.c
...
git-svn: trunk@3097
19 years ago
Török Edvin
d5b1e62a3c
handle chaining of multiple OP_DOT in same node.(bug #529 )
...
git-svn: trunk@3095
19 years ago
Török Edvin
5c98f46503
cli_realloc() for matcher->root_hosts
...
git-svn: trunk@3065
19 years ago
Tomasz Kojm
84fd5a614c
fix some possible error path leaks by changing cli_realloc() to cli_realloc2()
...
git-svn: trunk@3064
19 years ago
Török Edvin
462e8e5eb3
apply next set of patches for enabling phishing code
...
git-svn: trunk@3043
19 years ago
Török Edvin
f74bc8271b
Update code to use new AC matcher.
...
Fix URL truncation.
git-svn: trunk@3039
19 years ago
Török Edvin
293b4d909d
Remove cl_experimental wrapper for phishcheck, and entconv
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/temp_dconf_phishenable@2980 77e5149b-7576-45b1-b177-96237e5ba77b
19 years ago
Török Edvin
6e3332cfd9
add signature type Y (host-only, regex, .wdb)
...
git-svn: trunk@2949
19 years ago
Török Edvin
43ecd9a14b
#include cleanup, Code cleanup, remove commented-out code, fix some gcc -W* warnings
...
git-svn: trunk@2931
19 years ago
Török Edvin
c1544144e3
fix gcc -W* warnings
...
git-svn: trunk@2929
19 years ago
Török Edvin
99330b5c9c
Remove obsolete $Log$ keyword.
...
git-svn: trunk@2812
19 years ago
aCaB
c311ffc3fb
wdb patch from edvin - bb#303
...
git-svn: trunk@2757
19 years ago