Commit graph

83 commits

Author SHA1 Message Date
Török Edvin
e4a0f2c94f fix compiler warnings (bb #1872, bb #1934, bb #1935) 2010-04-13 16:19:47 +03:00
Török Edvin
d772904022 Fix matchwithread.cbc
ImageBase is little-endian, need to use conversion
function to access it.
2010-04-02 13:13:17 +03:00
Török Edvin
e407d32d04 Increase timeout of testcase itself. 2010-03-30 11:10:58 +03:00
Török Edvin
ce288463e2 Increase bytecode timeout for non-timeout tests. 2010-03-30 00:04:38 +03:00
Török Edvin
fa82ce037a Separate bytecode tests into jit and interpreter.
This makes it easier to see which one has a problem, and also reduces the
runtime of individual tests.
2010-03-29 12:09:07 +03:00
Török Edvin
1678ef9e43 Fix inflate.cbc for the interpreter. 2010-03-29 11:38:52 +03:00
Török Edvin
0d9b99f43e Fix bswap.cbc in interpreter mode. 2010-03-28 23:49:25 +03:00
Török Edvin
041bc64aab Increase timeout in unit test (bb #1899). 2010-03-26 16:50:30 +02:00
Török Edvin
e439954b51 Fix valgrind warnings. 2010-03-24 17:37:23 +02:00
Török Edvin
778df8c22f Fix more leaks. 2010-03-24 17:08:20 +02:00
Török Edvin
6ea339aeab Fix bswap. 2010-03-24 15:27:15 +02:00
Török Edvin
48fc8b9852 Leak testcase. 2010-03-24 14:14:33 +02:00
Török Edvin
b26d43809a Add matchwithread.cbc to unit tests. 2010-03-24 12:46:34 +02:00
Török Edvin
74f5816c58 Interpreter fixes for accessing 'ctx'.
This allow all cbcs in unit_tests/input to pass.
Not yet working on bytecode.cvd though.
2010-03-23 21:47:57 +02:00
Török Edvin
bdd9aeaeeb Use a watchdog thread. Also make timeout be ms instead of us. 2010-03-23 16:33:41 +02:00
Török Edvin
b63681a52b Introduce BytecodeTimeout. 2010-03-22 17:16:07 +02:00
Török Edvin
c42033313a disable this test for now. 2010-03-22 12:49:16 +02:00
Török Edvin
6eeadbfeda dconf for bytecode. 2010-02-15 17:32:41 +02:00
Török Edvin
c0afc51729 Don't use C++ comments in C code. 2010-01-27 12:07:08 +02:00
Tomasz Kojm
de351ee1bc libclamav: handle digitally signed .info files 2010-01-25 13:28:19 +01:00
Török Edvin
ed4a336e2c More build fixes. 2009-12-11 21:44:22 +02:00
Török Edvin
41423d3836 Reenable unit tests. 2009-10-02 14:20:50 +03:00
Török Edvin
646395bb44 Fix distcheck. 2009-10-02 12:52:35 +03:00
Török Edvin
52dd3a6bda Initial support for loading .cbc files from DB. 2009-09-21 20:10:33 +03:00
Török Edvin
e6d1fe78ea Apicall0 suppport for JIT. 2009-09-02 18:53:29 +03:00
Török Edvin
616616060d This test now passes with the JIT. 2009-09-02 15:37:35 +03:00
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
6b67ec6ee7 Handle runtime errors with setjmp/longjmp, using a thread-local jmpbuf to make
it threadsafe.
2009-08-28 13:26:33 +03:00
Török Edvin
85a25497bd really execute the JITed code. 2009-08-27 20:41:29 +03:00
Török Edvin
d1487222f7 Draft of libclamav <-> jit communication. 2009-08-25 19:06:32 +03:00
Török Edvin
cf0cd429e9 Implement API calls from bytecode. 2009-08-20 16:33:58 +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
3411775b3a Add missing unit-test files. 2009-07-13 19:45:05 +03:00