Török Edvin
5b74e89a35
enable prefiltering, and add to dconf.
...
Also downgrade some warnings to debug messages.
16 years ago
Török Edvin
e0ac80ab38
Prepare for prefiltering: add new files.
...
Move SO_search to filtering.c as filtering_search.
Add unit test.
16 years ago
Tomasz Kojm
6c26e99c59
libclamav: check file sizes for MD5 sigs in all cases
16 years ago
aCaB
49ee0318fc
fix scanbuff callers
17 years ago
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)
17 years ago
Tomasz Kojm
aca9ea82df
libclamav: handle relative offsets with cli_ac_data; fix offset logic
17 years ago
Tomasz Kojm
33872a43de
libclamav: improve handling of signature offsets
17 years ago
Tomasz Kojm
cc447ac82c
configure, libclamav: fix compile issues on IRIX (bb#1532)
17 years ago
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.
17 years ago
Török Edvin
816d66a876
local.gdb whitelisting of safebrowsing entries (bb #1482 ).
...
git-svn: trunk@5015
17 years ago
Török Edvin
a3d029b938
make use of hostkey prefix entries
...
git-svn: trunk@4929
17 years ago
Török Edvin
e828353b83
allow for hash prefixes.
...
git-svn: trunk@4916
17 years ago
Török Edvin
12d07440c4
comply with safebrowsing naming guidelines.
...
git-svn: trunk@4912
17 years ago
Tomasz Kojm
03527bee64
libclamav: count .pdb entries as signatures
...
freshclam, sigtool: add support for safebrowsing.cvd (bb#1056)
git-svn: trunk@4901
17 years ago
Török Edvin
d4e1cb474f
fix match with root regex (bb #1421 ).
...
git-svn: trunk@4848
17 years ago
Török Edvin
fe389c841d
reorder fields (bb #1144 )
...
git-svn: trunk@4830
17 years ago
Török Edvin
4e46d65d39
use sha256 instead of md5 in phishcheck.
...
move sha256 to libclamav.
add more tests.
git-svn: trunk@4822
17 years ago
Tomasz Kojm
871177cdd9
return codes cleanup (bb#1159)
...
git-svn: trunk@4749
17 years ago
Tomasz Kojm
47d40feb7a
libclamav: use LibTomMath by Tom St Denis instead of libgmp for multiple precision integer arithmetic (bb#1366)
...
git-svn: trunk@4650
17 years ago
Török Edvin
76115c1963
fix malformed .pdb handling (bb #1338 )
...
git-svn: trunk@4591
17 years ago
Tomasz Kojm
589d8d8e99
libclamav: add default.h
...
git-svn: trunk@4578
17 years ago
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
17 years ago
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
17 years ago
Török Edvin
563582a1ec
fix unit tests when mpool is activated
...
git-svn: trunk@4323
17 years ago
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
17 years ago
aCaB
1e2969a4e1
reenable non-mpooll builds
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/mpool@4282 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
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
17 years ago
aCaB
0d9dbdef21
some leaks fixed
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/mpool@4280 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
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
17 years ago
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
17 years ago
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
17 years ago
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
17 years ago
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
17 years ago
Török Edvin
ed65443330
fix whitespace
...
git-svn: trunk@4235
17 years ago
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
18 years ago
Tomasz Kojm
341faf6051
libclamav: drop obsolete code in matcher-ac
...
git-svn: trunk@4140
18 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
18 years ago
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
18 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
18 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
18 years ago
Török Edvin
063bfe5e00
rename hashes -> md5_hashes
...
git-svn: trunk@4052
18 years ago
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