aCaB
f206d31afa
bb#3509
2011-09-16 12:48:59 +02:00
aCaB
88d09f480d
make the sigload callback be aware of custom sigs
2011-06-14 19:04:02 +02:00
aCaB
9f497be696
Revert "Revert "add whitelisting via cb to phish sigs too""
...
This reverts commit 9eff97c080
.
2010-08-13 00:53:45 +02:00
aCaB
9eff97c080
Revert "add whitelisting via cb to phish sigs too"
...
This reverts commit febc0c9f77
.
2010-08-11 14:18:13 +02:00
aCaB
febc0c9f77
add whitelisting via cb to phish sigs too
2010-08-11 12:33:20 +02:00
Török Edvin
5b74e89a35
enable prefiltering, and add to dconf.
...
Also downgrade some warnings to debug messages.
2010-02-15 17:32:41 +02:00
Török Edvin
40103a3004
Merge branch 'tmp' into prefiltering2
...
* tmp:
Prepare for prefiltering: add new files.
Conflicts:
libclamav/Makefile.am
libclamav/Makefile.in
libclamav/libclamav.map
libclamav/regex_list.c
2010-02-09 12:28:23 +02:00
Török Edvin
e0ac80ab38
Prepare for prefiltering: add new files.
...
Move SO_search to filtering.c as filtering_search.
Add unit test.
2010-02-09 12:12:49 +02:00
aCaB
63979bf21e
Merge remote branch 'origin/fmap4all'
2009-10-09 22:07:33 +02:00
Tomasz Kojm
6c26e99c59
libclamav: check file sizes for MD5 sigs in all cases
2009-10-02 21:03:26 +02:00
aCaB
10aa2df79b
Merge branch 'replace-mmap' into fmap4all
...
Conflicts:
libclamav/matcher-bm.c
libclamav/matcher-bm.h
libclamav/matcher.c
libclamav/pe.c
libclamav/phishcheck.c
libclamav/regex_list.c
2009-09-02 00:09:28 +02:00
aCaB
49ee0318fc
fix scanbuff callers
2009-09-01 19:15:57 +02:00
Tomasz Kojm
006f5fe642
libclamav: in bm_offmode only load sigs with non-floating absolute
...
and relative offsets into BM matcher (load other ones into AC) and
use per-file computed offset table to pick up best shifts (not
enabled by default, bb#1300)
2009-09-01 11:19:31 +02:00
Tomasz Kojm
aca9ea82df
libclamav: handle relative offsets with cli_ac_data; fix offset logic
2009-08-21 15:55:10 +02:00
Tomasz Kojm
33872a43de
libclamav: improve handling of signature offsets
2009-08-14 14:38:13 +02:00
Tomasz Kojm
cc447ac82c
configure, libclamav: fix compile issues on IRIX (bb#1532)
2009-08-04 23:17:28 +02:00
Török Edvin
627b76269a
Safebrowsing.cvd load speed was very slow, taking up to 20s.
...
Improve load speed to ~3s by using another hash.
Also silence some .pdb load debug messages.
2009-07-17 13:55:15 +03:00
Török Edvin
816d66a876
local.gdb whitelisting of safebrowsing entries (bb #1482 ).
...
git-svn: trunk@5015
2009-04-02 20:36:27 +00:00
Török Edvin
a3d029b938
make use of hostkey prefix entries
...
git-svn: trunk@4929
2009-03-11 20:06:35 +00:00
Török Edvin
e828353b83
allow for hash prefixes.
...
git-svn: trunk@4916
2009-03-09 11:23:21 +00:00
Török Edvin
12d07440c4
comply with safebrowsing naming guidelines.
...
git-svn: trunk@4912
2009-03-09 11:23:02 +00:00
Tomasz Kojm
03527bee64
libclamav: count .pdb entries as signatures
...
freshclam, sigtool: add support for safebrowsing.cvd (bb#1056)
git-svn: trunk@4901
2009-03-05 19:09:54 +00:00
Török Edvin
d4e1cb474f
fix match with root regex (bb #1421 ).
...
git-svn: trunk@4848
2009-02-23 12:35:45 +00:00
Török Edvin
fe389c841d
reorder fields (bb #1144 )
...
git-svn: trunk@4830
2009-02-18 19:53:28 +00:00
Török Edvin
4e46d65d39
use sha256 instead of md5 in phishcheck.
...
move sha256 to libclamav.
add more tests.
git-svn: trunk@4822
2009-02-18 14:54:16 +00:00
Tomasz Kojm
871177cdd9
return codes cleanup (bb#1159)
...
git-svn: trunk@4749
2009-02-12 13:53:23 +00:00
Tomasz Kojm
47d40feb7a
libclamav: use LibTomMath by Tom St Denis instead of libgmp for multiple precision integer arithmetic (bb#1366)
...
git-svn: trunk@4650
2009-01-26 19:47:02 +00:00
Török Edvin
76115c1963
fix malformed .pdb handling (bb #1338 )
...
git-svn: trunk@4591
2009-01-05 10:41:03 +00:00
Tomasz Kojm
589d8d8e99
libclamav: add default.h
...
git-svn: trunk@4578
2008-12-29 17:55:30 +00:00
Török Edvin
6a21552ef2
have configure define NDEBUG unless we use --enable-debug, instead of having
...
to #ifndef CL_DEBUG #define NDEBUG #endif in each .c file that uses assert.
If you want assertions enabled you'll need to use --enable-debug to configure,
as until now, no change there.
git-svn: trunk@4343
2008-11-06 14:27:18 +00:00
Török Edvin
ad0fd7287a
* libclamav/matcher-ac.c (cli_ac_addsig): need to use mpool allocated memory for ->str
...
* libclamav/mpool.c (mp_malloc, cli_mp_hex2str, check_all): introduce hex2str wrapper
* libclamav/mpool.h (mp_t, cli_mp_hex2str): introduce hex2str wrapper
* libclamav/regex_list.c (add_hash): need to use mpool allocated memory for arg to bm_addpatt
git-svn: trunk@4330
2008-11-04 10:40:31 +00:00
Török Edvin
563582a1ec
fix unit tests when mpool is activated
...
git-svn: trunk@4323
2008-11-03 19:26:57 +00:00
aCaB
e21657dfc9
a faster and more compact allocator
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/mpool@4286 77e5149b-7576-45b1-b177-96237e5ba77b
2008-10-21 23:55:11 +00:00
aCaB
1e2969a4e1
reenable non-mpooll builds
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/mpool@4282 77e5149b-7576-45b1-b177-96237e5ba77b
2008-10-19 17:57:09 +00:00
aCaB
d22176efd2
MERGE COMPLETE
...
TODO
- unuglify the ifdefs
- reenable make checks
- rework mpool.c
- test
git-svn-id: file:///var/lib/svn/clamav-devel/branches/mpool@4281 77e5149b-7576-45b1-b177-96237e5ba77b
2008-10-19 17:27:37 +00:00
aCaB
0d9dbdef21
some leaks fixed
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/mpool@4280 77e5149b-7576-45b1-b177-96237e5ba77b
2008-10-19 16:16:49 +00:00
Török Edvin
b36e9f8a1a
mempool for regex_list/phishcheck
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/mpool@4277 77e5149b-7576-45b1-b177-96237e5ba77b
2008-10-19 12:27:59 +00:00
Török Edvin
29f241666f
fix hexnew allocation, mempool for regex_list
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/mpool@4276 77e5149b-7576-45b1-b177-96237e5ba77b
2008-10-19 12:13:24 +00:00
aCaB
a5746c2512
TODO:
...
- make regex* and hash* behave properly (either include or exclude from the pool entirely)
- cleanup the ifdefs and make a single macro
- fixup the proto for dconf (re-enables make check in mpool-mode)
- check the possibility to entirely wipe frees from error paths in mpool-mode
(this totally simplifies the code)
git-svn-id: file:///var/lib/svn/clamav-devel/branches/mpool@4271 77e5149b-7576-45b1-b177-96237e5ba77b
2008-10-18 12:03:08 +00:00
aCaB
885c2bf5b9
builds with and without mpools (#define USE_MPOOL) but it's still very broked
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/mpool@4269 77e5149b-7576-45b1-b177-96237e5ba77b
2008-10-18 01:04:14 +00:00
aCaB
0728972ea5
(hoepfully) completed db load, regexes and hashes missing
...
need to recheck strlen(hex2string) bugs, need to figure how to hangle regexes and hashes: edwiiiiiiin!!! :D
git-svn-id: file:///var/lib/svn/clamav-devel/branches/mpool@4268 77e5149b-7576-45b1-b177-96237e5ba77b
2008-10-18 00:16:23 +00:00
Török Edvin
ed65443330
fix whitespace
...
git-svn: trunk@4235
2008-10-07 20:04:50 +00:00
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
2008-09-16 10:32:20 +00:00
Tomasz Kojm
341faf6051
libclamav: drop obsolete code in matcher-ac
...
git-svn: trunk@4140
2008-08-25 14:07:18 +00:00
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
2008-08-21 20:21:43 +00:00
Török Edvin
e6f14011ef
fix crash in SO_search when len == 1
...
also skip matching too short strings (they won't match anyway)
git-svn: trunk@4067
2008-08-03 14:09:35 +00:00
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
2008-08-01 15:45:15 +00:00
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
2008-08-01 14:50:22 +00:00
Török Edvin
063bfe5e00
rename hashes -> md5_hashes
...
git-svn: trunk@4052
2008-08-01 14:50:16 +00:00
Török Edvin
b611b5ff71
initial support for matching URLs against MD5 hashes
...
git-svn: trunk@4049
2008-08-01 14:49:55 +00:00