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
17 years ago
Tomasz Kojm
370892d044
clamscan, clamd: use the new API; drop the hardcoded default limits and use the ones set in cl_engine_new()
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/newapi@4384 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
aCaB
5ed6026065
liblt sucks
...
git-svn: trunk@4381
17 years ago
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
17 years ago
aCaB
cadf86d46f
remove mutex in nsis/zlib
...
git-svn: trunk@4379
17 years ago
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
17 years ago
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
17 years ago
aCaB
b51b44afb9
*really* final
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/dlopen@4369 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
aCaB
bb7bd3abfd
final
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/dlopen@4368 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
fc0493d2ca
reduce memory usage of AC nodes
...
git-svn: trunk@4363
17 years ago
Török Edvin
5ddf834fa3
fix VPATH build
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/dlopen@4361 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
aCaB
094104a7ac
preliminary dlopen support for libclamunrar - this is mostly libtool stuff
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/dlopen@4360 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
2bbbd2380f
reorder some struct fields to avoid holes
...
git-svn: trunk@4355
17 years ago
aCaB
b26d0ef3fd
mpool opt
...
git-svn: trunk@4354
17 years ago
Török Edvin
08402afa4c
fix more compiler warnings (bb #273 )
...
git-svn: trunk@4353
17 years ago
Török Edvin
5a1034b991
fix more compiler warnings (bb #273 ).
...
git-svn: trunk@4349
17 years ago
Török Edvin
b9b477842d
fix compiler warnings, more to come (bb #273 )
...
git-svn: trunk@4346
17 years ago
Török Edvin
deb3031222
mempool statistics support
...
git-svn: trunk@4344
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
26ffcfa20c
use ANONYMOUS_MAP from clamav-config.h instead of MAP_ANONYMOUS, fix mp_flush
...
call mp_flush from readdb
git-svn: trunk@4340
17 years ago
Török Edvin
c9a3e685b4
* libclamav/mpool.c (mp_destroy): need to use sizeof(*mp) because mp is a pointer here!!
...
git-svn: trunk@4339
17 years ago
aCaB
38e881e3c0
mpool cli_mp_hex2ui
...
git-svn: trunk@4337
17 years ago
Tomasz Kojm
a305a2616a
libclamav/matcher-ac.c: micro-optimization (bb#843), thanks to Edwin
...
git-svn: trunk@4334
17 years ago
aCaB
d6e1ef1611
mempool deuglification
...
git-svn: trunk@4333
17 years ago
Tomasz Kojm
ac1b219cf1
libclamav, clamd: always return correct db version in VERSION (bb#1168)
...
git-svn: trunk@4332
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
7866b37c6b
mpool debugging
...
s/USE_MEMPOOL/USE_MPOOL/
git-svn: trunk@4329
17 years ago
Török Edvin
563582a1ec
fix unit tests when mpool is activated
...
git-svn: trunk@4323
17 years ago
Tomasz Kojm
91b8682af8
downgrade some error messages
...
git-svn: trunk@4315
17 years ago
Tomasz Kojm
6c0d168478
libclamav/readdb.c: daily.ign was overwriting local.ign (bb#1265)
...
git-svn: trunk@4314
17 years ago
Tomasz Kojm
5e035bdf9b
update flevel/revision
...
git-svn: trunk@4313
17 years ago
aCaB
ddc9e6c347
bb#1239
...
git-svn: trunk@4311
17 years ago
aCaB
0281fb4d9c
32 and 64 bit pools
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/mpool@4301 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
aCaB
948644e619
tuned granularity - amd64 only (for now) - VIRT 114 / RES 95
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/mpool@4300 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Tomasz Kojm
3f81d93a7e
libclamav: fix detection of Worm.Mydoom.M.log and control it with CL_SCAN_ALGORITHMIC and dconf (bb#1241)
...
git-svn: trunk@4291
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
eb8ab9d28a
bloody svn sucks
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/mpool@4285 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
aCaB
a963dd9257
typo
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/mpool@4283 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
aCaB
4284b788bc
freeign0
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/mpool@4278 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
6e2a411334
make _resize properly behave
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/mpool@4274 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
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
17 years ago
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
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
b0c3171680
missing symlinks
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/mpool@4270 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