Török Edvin
3baee5029c
convert a checked fixture into an unchecked fixture,
...
it is sufficient if that setup code is run once, this speeds up the tests.
fix some helgrind warnings
(the phishcheck struct is going to be freed anyway, so writing
something to it doesn't help anyway)
git-svn: trunk@4180
17 years ago
Török Edvin
7959343dc7
allow make distcheck to succeed (bb #1142 )
...
fix some more warnings
filter -Werror in clamav-milter.c
git-svn: trunk@4141
17 years ago
Török Edvin
5cd3f734a9
add lots of warnings flags to 'make distcheck',
...
and turn some warnings into errors (bb #1092 )
git-svn: trunk@4129
17 years ago
Tomasz Kojm
3b7d319553
fix NULL dereference when running with a limited db
...
git-svn: trunk@4103
17 years ago
Török Edvin
dfc0c031cb
if there is a version.h.static use that instead of output from svnversion
...
Makefile portability fixes
fix assert failure
add lcov to top level makefile
cleanup after lcov when you run make clean (bb #1112 )
fix parsing of [^.] character class
fix parsing of [r-t]
fix handling of @ for URL hashes
fix handling of &# inside URLs
drop some dead code
more unit tests for str
portability fixes
git-svn: trunk@4078
17 years ago
Török Edvin
063ddd53f8
optimization: use the filter to avoid cli_bm_scanbuff calls
...
bugfix: SO_search returns -1 when it doesn't find a match,
code was assuming it returns 0.
git-svn: trunk@4061
17 years ago
Török Edvin
1126559f77
flag for U: lines, format is one of:
...
U:MD5
U1:MD5
U2:MD5
add unit test for md5 url match
git-svn: trunk@4053
17 years ago
Török Edvin
063bfe5e00
rename hashes -> md5_hashes
...
git-svn: trunk@4052
17 years ago
Török Edvin
b3b6f0e436
fix valgrind warning
...
git-svn: trunk@4051
17 years ago
Török Edvin
b43205cb6a
implement md5 URL match
...
git-svn: trunk@4050
17 years ago
Török Edvin
b611b5ff71
initial support for matching URLs against MD5 hashes
...
git-svn: trunk@4049
17 years ago
Török Edvin
d66b881218
add missing header
...
git-svn: trunk@4041
17 years ago
Török Edvin
7f0d1148d6
clamd, clamscan, libclamav: new option HeuristicScanPrecedence (bb #649 )
...
docs/: update docs for HeuristicScanPrecedence and ScanPartialMessages
unit_tests/: add test for HeuristicScanPrecedence
git-svn: trunk@4037
17 years ago
Török Edvin
2b9e5d2971
drop a redundant check from phishcheck.
...
enable debug output in unit tests, they are dumped to
unit_tests/test-stderr.log.
git-svn: trunk@4028
17 years ago
Török Edvin
35609fe5a0
param to isalnum() has to be unsigned
...
git-svn: trunk@3996
17 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
17 years ago
Török Edvin
c0d00d36ae
update TLD list (bb #925 )
...
git-svn: trunk@3782
17 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
17 years ago
Török Edvin
d23bc0306d
fix out of memory handling (bb #849 ).
...
git-svn: trunk@3649
18 years ago
Török Edvin
59838e6c64
change order of checks whitelist/isURL
...
git-svn: trunk@3637
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
Török Edvin
f12c2e6825
ignore invalid URLs containing double dots, optimization: cut URL after hostname
...
git-svn: trunk@3569
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
1eed6af5b9
fix leaks introduced by r3417.
...
git-svn: trunk@3424
18 years ago
aCaB
813864ce6b
(hopefully) all the stuff lost
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/not_for_0.92_tempbranch@3388 77e5149b-7576-45b1-b177-96237e5ba77b
18 years ago
Török Edvin
88c90922be
revert change from trunk and move to branch.
...
git-svn: trunk@3370
18 years ago
Török Edvin
a4e6ac4d78
remove "all domain scan" feature from phishcheck (--no-phishing-restrictedscan). Nobody is using it.
...
Don't care why an url is clean, just state it is clean.
Various cleanups resulting from this.
Prepare to introduce selective turn on of sub-features.
git-svn: trunk@3369
18 years ago
Török Edvin
37dd9c04c4
better handling for \n
...
git-svn: trunk@3330
18 years ago
Török Edvin
a57cfac603
remove incorrect free_if_needed call
...
git-svn: trunk@3261
18 years ago
Török Edvin
830c1eaed2
avoid false positives with outbind:// URLs
...
git-svn: trunk@3260
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
7da9bd64eb
fix NULL deref. bug, use of uninitialized variable, and memory leak from yesterday's commit.
...
Changelog: add log message for r3254 from svn log, forgot to update Changelog yesterday (oops)
git-svn: trunk@3255
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
6a929d834c
improve url extraction algorithm.
...
git-svn: trunk@3233
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
18 years ago
Török Edvin
4c748c36e3
make debug output look better (patch from Sven)
...
git-svn: trunk@3172
18 years ago
Török Edvin
7c6c3e1317
libclamav/phishcheck.c: Don't report phishing on broken urls containing > in the hostname. (bb #619 )
...
git-svn: trunk@3171
18 years ago
Török Edvin
2d33c3a396
workaround Solaris problem with regexec() [bb #598 ]
...
git-svn: trunk@3165
18 years ago
Török Edvin
89c762904c
Fix (null) FOUND
...
git-svn: trunk@3143
18 years ago
Török Edvin
e1a2e45704
fix typo in regex
...
git-svn: trunk@3125
18 years ago
Török Edvin
38a0019993
stick to GPLv2
...
git-svn: trunk@3121
18 years ago
Török Edvin
3fced6f7b0
Rename Phishing.Email.* to Phishing.Heuristics.Email.*. Update documentation.
...
The URL-based heuristic detection is for "Possibly Unwanted" phishing emails.
git-svn: trunk@3120
18 years ago
Török Edvin
253808067b
let .*db signatures take precedence over Phishing.Email.* signatures (patch approved by TK)
...
git-svn: trunk@3104
18 years ago
Török Edvin
10af98a4bb
bb #497
...
git-svn: trunk@3077
18 years ago
Török Edvin
462e8e5eb3
apply next set of patches for enabling phishing code
...
git-svn: trunk@3043
18 years ago
Török Edvin
0566dc4247
check if real URL is really an URL. (in response to FP report 983532)
...
git-svn: trunk@3007
18 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
18 years ago
Török Edvin
43ecd9a14b
#include cleanup, Code cleanup, remove commented-out code, fix some gcc -W* warnings
...
git-svn: trunk@2931
18 years ago
Török Edvin
99330b5c9c
Remove obsolete $Log$ keyword.
...
git-svn: trunk@2812
19 years ago