Tomasz Kojm
b8fe70b3a3
libclamav: drop options parameter in cl_engine_new(); replace cl_engine_dup() with cl_engine_addref()
...
git-svn: trunk@4398
2008-11-13 15:55:35 +00:00
Tomasz Kojm
55cd3168fa
s/CL_DB_STDOPT/CL_ENGINE_DEFAULT
...
git-svn: trunk@4388
2008-11-12 18:07:04 +00:00
Török Edvin
15adbc849a
update unit tests to new API.
...
Initialization order changed, make sure stats_tls_key is initialized.
git-svn: trunk@4387
2008-11-12 18:02:33 +00:00
Török Edvin
08402afa4c
fix more compiler warnings (bb #273 )
...
git-svn: trunk@4353
2008-11-07 18:49:47 +00:00
Török Edvin
7866b37c6b
mpool debugging
...
s/USE_MEMPOOL/USE_MPOOL/
git-svn: trunk@4329
2008-11-04 10:40:24 +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
Török Edvin
d5d06eccaa
support building with older versions of check
...
git-svn: trunk@4289
2008-10-22 17:27:44 +00:00
Török Edvin
dc36f0d70c
strip spaces from URL before checking that it is a URL
...
git-svn: trunk@4215
2008-10-01 09:56:54 +00:00
Török Edvin
7d4b5f164a
use clistrdup/free instead of blobs (bb #828 )
...
git-svn: trunk@4203
2008-09-23 20:52:33 +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
Török Edvin
15d67313c4
allow 'make check' to work even if check is not installed
...
by skipping checks that require it. (bb #1157 )
if configure is not able to find check, you can use
--with-libcheck-prefix, instead of CHECK_CFLAGS and
CHECK_LIBS.
remove accidental AC_DEFINE GETHOSTBYNAME_R_6 from last commit.
git-svn: trunk@4172
2008-09-11 11:02:12 +00:00
aCaB
61b295f494
spam if lcheck is too old
...
git-svn: trunk@4121
2008-08-20 12:55:42 +00:00
aCaB
99f74adcc1
check for check
...
git-svn: trunk@4098
2008-08-10 16:19:01 +00:00
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
2008-08-04 12:44:16 +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
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
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
2008-07-29 17:19:07 +00:00
Török Edvin
888973ccc9
more tests
...
git-svn: trunk@4026
2008-07-29 16:45:21 +00:00
Török Edvin
a2d14e06b9
add more unit-tests
...
fix matching bugs in regex_list
git-svn: trunk@4020
2008-07-29 15:37:23 +00:00
Török Edvin
a497dce52d
fix compiler warnings
...
constify
git-svn: trunk@4019
2008-07-29 10:59:21 +00:00
Török Edvin
9ee053feab
handle multiple matches (bb #1110 )
...
update tests for regex, reenable test
git-svn: trunk@4018
2008-07-29 10:36:26 +00:00
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
2008-07-25 20:01:40 +00:00
Török Edvin
3dcc2d784e
more tests for regex
...
run unit-tests under valgrind if available.
git-svn: trunk@3990
2008-07-25 16:03:04 +00:00
Török Edvin
82167b0a77
remove remaining CL_DEBUG, and add missing file
...
git-svn: trunk@3989
2008-07-25 07:25:36 +00:00