Török Edvin
2487a4a342
Various bytecode JIT fixes, teach clamconf about JIT, and make sure make check runs the JIT!
2009-08-28 20:07:25 +03:00
Török Edvin
3b33bd6830
Minimal LLVM codegen.
2009-08-27 18:12:39 +03:00
Török Edvin
d1487222f7
Draft of libclamav <-> jit communication.
2009-08-25 19:06:32 +03:00
Török Edvin
6922903ad9
bytecode: fully switch to a stack based allocation, and operands with various bitwidths.
2009-08-17 15:13:29 +03:00
Török Edvin
f3b2dc9e28
Implement ICMP_*.
2009-07-09 23:58:57 +03:00
Török Edvin
7a9022c944
bytecode: setup context to invoke a bytecode function.
2009-07-07 19:58:37 +03:00
Török Edvin
997a1efeb2
Draft of bytecode loader.
2009-06-26 16:30:46 +03:00
Tomasz Kojm
5bdf0b2a45
clamconf: display info on software & dbs (bb#1461)
...
git-svn: trunk@5056
2009-04-27 15:42:35 +00:00
Török Edvin
62b7686d21
fix trailing bytes in base64 decoding (bb #1388 , thanks Thiyaga <mthiyaga*corp.untd.com>)
...
git-svn: trunk@4974
2009-03-22 16:55:41 +00:00
Tomasz Kojm
2accc66fef
libclamav, clamd, clamscan: replace cl_engine_(set|get) with cl_engine_set_(num|str) and cl_engine_get_(num|str)
...
git-svn: trunk@4933
2009-03-12 15:21:36 +00:00
Török Edvin
e68d70e7e0
strerror/strerror_r->cli_strerror which is always thread safe.
...
git-svn: trunk@4927
2009-03-11 19:11:09 +00:00
Tomasz Kojm
99f817e731
libclamav: introduce cl_engine_settings_* API calls for copying settings between engines
...
clamd/server-th.c: respect original engine settings after db reload (bb#1380)
git-svn: trunk@4885
2009-03-02 18:56:03 +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
Török Edvin
208bce76f9
remove nonexistent symbol to make Solaris linker happy.
...
git-svn: trunk@4770
2009-02-12 21:14:56 +00:00
Török Edvin
e5e4a55410
merge from clamd-proto branch: introduce cli_ftw
...
git-svn: trunk@4754
2009-02-12 16:40:35 +00:00
Tomasz Kojm
afff80efb9
libclamav, shared: minor cleanups; fix handling of long file names (bb#1349)
...
git-svn: trunk@4670
2009-02-03 18:47:18 +00:00
Török Edvin
7b57a8338e
add dsig unit test
...
git-svn: trunk@4652
2009-01-27 10:57:54 +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
db43492c79
remove nonexistent symbols from .map file, add dummy functions.
...
git-svn: trunk@4431
2008-11-18 13:07:10 +00:00
Tomasz Kojm
33068e0973
libclamav: drop cl_settempdir(); use cl_engine_set() with CL_ENGINE_TMPDIR and CL_ENGINE_KEEPTMP instead
...
git-svn: trunk@4416
2008-11-14 22:23:39 +00:00
Tomasz Kojm
ab0d2f054d
libclamav, clamd, clamscan: use cl_engine_set() to control AC settings
...
git-svn: trunk@4404
2008-11-13 19:06:42 +00:00
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
c45c4c3db0
add cl_engine_(set|get)
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/newapi@4378 77e5149b-7576-45b1-b177-96237e5ba77b
2008-11-11 14:42:12 +00:00
Tomasz Kojm
724b2bf770
Move cl_engine from clamav.h to others.h; move cl_limits to cl_engine;
...
New API calls:
int cl_init(unsigned int options);
struct cl_engine *cl_engine_new(unsigned int options);
int cl_engine_compile(struct cl_engine *engine);
struct cl_engine *cl_engine_dup(struct cl_engine *engine);
int cl_engine_free(struct cl_engine *engine);
more to come..
WARNING: THE BRANCH IS CURRENTLY BROKEN AND SHOULD NOT BE USED
git-svn-id: file:///var/lib/svn/clamav-devel/branches/newapi@4370 77e5149b-7576-45b1-b177-96237e5ba77b
2008-11-10 17:39:58 +00:00
Török Edvin
deb3031222
mempool statistics support
...
git-svn: trunk@4344
2008-11-06 14:27:27 +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
d9282b9765
properly null-terminate buffer (bb #1223 )
...
git-svn: trunk@4252
2008-10-11 13:56:29 +00:00
Török Edvin
5f3d802a2d
remove duplicate symbol
...
git-svn: trunk@4167
2008-09-03 07:06:45 +00:00
Tomasz Kojm
ec285505da
unit_tests/check_matchers.c: add tests for cli_(ac|bm)_scanbuff
...
git-svn: trunk@4091
2008-08-07 12:40:41 +00:00
aCaB
5e07cfed01
unit tests for uniq
...
git-svn: trunk@4074
2008-08-04 00:01:14 +00:00
Török Edvin
2e64bd9fc5
add test for cli_hex2str (bb #930 )
...
git-svn: trunk@4056
2008-08-01 14:50:38 +00:00
aCaB
c92b0057f7
test_disasm
...
git-svn: trunk@4009
2008-07-28 19:22:15 +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
5ee56e4103
split up regex_list.
...
begin testing for regex_suffix
git-svn: trunk@3985
2008-07-24 18:48:31 +00:00
Török Edvin
5be3029f8f
fix crash in js parser
...
fix configure test for check: if it is not available, and we didn't pass
--enable-check, do not complain
add unit test for jsnorm bug
git-svn: trunk@3949
2008-07-14 19:31:56 +00:00
Török Edvin
37e6472959
more unit tests for js normalizer
...
git-svn: trunk@3925
2008-07-08 19:37:18 +00:00
Török Edvin
4a6ade4489
add all needed files to EXTRA_DIST (to fix make distcheck)
...
create unit tests for js normalizer
cleanups
git-svn: trunk@3924
2008-07-08 19:02:15 +00:00
Tomasz Kojm
72ce4b70eb
improve handling of PDF, CAB, RTF, OLE2 and HTML files (sync with branch/0.93)
...
git-svn: trunk@3862
2008-05-27 16:30:47 +00:00
Török Edvin
7be8d871f6
replace cli_dbgmsg with a macro that avoids calling
...
the real function if we're not debugging. Statically
predict this branch as untaken.
updates due to above change
git-svn: trunk@3643
2008-02-15 20:45:51 +00:00
Török Edvin
9e751804a2
introduce cli_ctime() that uses ctime_r() when
...
available, and falls back to locking with a mutex around
ctime(). (ensures we are using the same mutex always).
use cli_ctime() instead of the thread-unsafe ctime().
This fixes stability problems.
git-svn: trunk@3578
2008-02-03 19:23:20 +00:00
Tomasz Kojm
a3fe2c5ba1
make the parser more sensitive to syntax errors (bb#238)
...
git-svn: trunk@3561
2008-01-30 20:04:02 +00:00
Török Edvin
80cf63099c
add support for version scripts when using Sun's ld on Solaris.
...
use $GREP to grep binary files, needed for autoit to build on Solaris.
add support for both GNU and Sun ld version scripts.
add version script maps to libclamunrar, libclamunrar_iface. Enumerate all symbols, Sun's ld doesn't support cl_* (only *).
cli_decodesig needs a dummy definition on Solaris.
git-svn: trunk@3474
2007-12-31 12:46:26 +00:00
Török Edvin
3c5655fb6f
add missing version script
...
git-svn: trunk@3464
2007-12-29 09:08:05 +00:00