Török Edvin
3b33bd6830
Minimal LLVM codegen.
2009-08-27 18:12:39 +03: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
Tomasz Kojm
039c95658d
libclamav/readdb.c: make the parser more sensitive to errors in numerical fields
2009-08-04 20:22:03 +02:00
Tomasz Kojm
99ca7f53f8
freshclam, libclamav: work around possible race condition during db updates (bb#1624)
2009-08-04 15:14:22 +02:00
Tomasz Kojm
a6a9845602
libclamav: improve loading speed of compressed databases (bb#1105)
2009-07-28 20:23:31 +02:00
Tomasz Kojm
8af7ccd0af
libclamav: handle Mach-O files with type-9 signatures;
...
all special offsets are supported for PPC32/64 and x86 executables; for ARM and other archs only section based extensions (Sx[+-]n, SL[+-]n) are supported atm
2009-07-13 21:29:46 +02:00
Tomasz Kojm
fea1b9bb65
libclamav/readdb.c: add offset checks (bb#1615)
...
git-svn: trunk@5070
2009-05-22 12:10:02 +00: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
Tomasz Kojm
d7c3f6e2e4
libclamav/readdb.c: return error instead of crashing when cl_load() gets called for already compiled engine (bb#1488);
...
don't overwrite dboptions with new calls to cl_load()
git-svn: trunk@4968
2009-03-22 14:18:19 +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
Tomasz Kojm
0810d861bb
libclamav, sigtool: use .gdb extension for safebrowsing dbs
...
git-svn: trunk@4906
2009-03-06 16:39:04 +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
Tomasz Kojm
b3df93db89
libclamav: report error instead of crashing when engine is not compiled (bb#1416)
...
git-svn: trunk@4882
2009-03-02 16:36:23 +00:00
Török Edvin
a1c9ad2cf3
fix distcheck.
...
git-svn: trunk@4836
2009-02-19 08:50:04 +00:00
Török Edvin
fe389c841d
reorder fields (bb #1144 )
...
git-svn: trunk@4830
2009-02-18 19:53:28 +00:00
Tomasz Kojm
4367454d76
libclamav, sigtool: fix handling of long signatures (bb#1395)
...
git-svn: trunk@4795
2009-02-16 16:29:44 +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
Tomasz Kojm
72fb25eaf0
libclamav/str.c: return token count in cli_strtokenize()
...
libclamav/readdb.c: use tokens_count (bb#1331); make the parser more strict
git-svn: trunk@4593
2009-01-05 19:57:47 +00:00
Tomasz Kojm
c9157be30f
libclamav/readdb.c: fix handling of malformed ldb sigs (bb#1292)
...
git-svn: trunk@4434
2008-11-18 19:21:11 +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
72d0c053da
libclamav/readdb.c: phishing_done() no longer needs to be called outside cl_engine_free()
...
git-svn: trunk@4397
2008-11-13 14:59:14 +00:00
aCaB
f5a4018bd7
dlinit in cl_init
...
git-svn: trunk@4394
2008-11-13 02:11:21 +00:00
Török Edvin
f01ea61380
Fix -Werror build: there is no libltdl directory when building with VPATH, $(srcdir)/libltdl is enough. Filter -Werror in libltdl.
...
git-svn: trunk@4389
2008-11-12 18:31:38 +00:00
Tomasz Kojm
2d84c70a37
* libclamav: introduce new API calls for engine management (THIS REVISION IS
...
NOT BACKWARD COMPATIBLE): cl_init(), cl_engine_new(),
cl_engine_set/get(), cl_engine_compile(), cl_engine_dup(),
cl_engine_free(); make minor modifications to other calls;
move cl_engine to others.h; integrate limits into cl_engine
* clamd, clamscan: use new API; drop hardcoded default limits and depend on
those set by libclamav
* clamav-milter, unit_tests: TODO, **don't compile in this rev**
git-svn: trunk@4385
2008-11-12 16:41:18 +00:00
Tomasz Kojm
15850fc6d4
simplify the code; don't free 'engine'
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/newapi@4380 77e5149b-7576-45b1-b177-96237e5ba77b
2008-11-11 21:23:34 +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
aCaB
b51b44afb9
*really* final
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/dlopen@4369 77e5149b-7576-45b1-b177-96237e5ba77b
2008-11-10 17:36:55 +00:00
aCaB
bb7bd3abfd
final
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/dlopen@4368 77e5149b-7576-45b1-b177-96237e5ba77b
2008-11-10 17:27:03 +00:00
Török Edvin
b9b477842d
fix compiler warnings, more to come (bb #273 )
...
git-svn: trunk@4346
2008-11-06 14:27:43 +00:00
Török Edvin
26ffcfa20c
use ANONYMOUS_MAP from clamav-config.h instead of MAP_ANONYMOUS, fix mp_flush
...
call mp_flush from readdb
git-svn: trunk@4340
2008-11-05 10:46:23 +00:00
aCaB
d6e1ef1611
mempool deuglification
...
git-svn: trunk@4333
2008-11-04 19:18:27 +00:00
Tomasz Kojm
ac1b219cf1
libclamav, clamd: always return correct db version in VERSION (bb#1168)
...
git-svn: trunk@4332
2008-11-04 18:45:48 +00:00
aCaB
946bd26646
merge mempool branch
...
git-svn: trunk@4320
2008-11-01 02:39:00 +00:00
Tomasz Kojm
6c0d168478
libclamav/readdb.c: daily.ign was overwriting local.ign (bb#1265)
...
git-svn: trunk@4314
2008-10-30 15:19:22 +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
a963dd9257
typo
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/mpool@4283 77e5149b-7576-45b1-b177-96237e5ba77b
2008-10-19 22:58:53 +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
aCaB
4284b788bc
freeign0
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/mpool@4278 77e5149b-7576-45b1-b177-96237e5ba77b
2008-10-19 12:32:36 +00:00
Török Edvin
04dc5e0ae5
remove debug message
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/mpool@4273 77e5149b-7576-45b1-b177-96237e5ba77b
2008-10-19 10:51:22 +00:00
Török Edvin
e309658f9b
strdup not hex2str for tokens[3]!
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/mpool@4272 77e5149b-7576-45b1-b177-96237e5ba77b
2008-10-19 10:50:40 +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