Tomasz Kojm
695e6fd402
sync with 0.94.2
...
git-svn: trunk@4484
17 years ago
Tomasz Kojm
be63d0adc5
libclamav/special.c: respect recursion limits in cli_check_jpeg_exploit() (bb#1266)
...
git-svn: trunk@4483
17 years ago
Török Edvin
33d52089fc
fix disable-unrar build: don't refer to libclamunrar_iface.la
...
with enable-unrar builds (default) warn if can't dlopen.
if unrar is disabled, don't warn, just show a debug message.
git-svn: trunk@4464
17 years ago
Tomasz Kojm
c9157be30f
libclamav/readdb.c: fix handling of malformed ldb sigs (bb#1292)
...
git-svn: trunk@4434
17 years ago
aCaB
fd856af471
use char* arithmetic
...
git-svn: trunk@4433
17 years ago
Török Edvin
db43492c79
remove nonexistent symbols from .map file, add dummy functions.
...
git-svn: trunk@4431
17 years ago
Tomasz Kojm
33068e0973
libclamav: drop cl_settempdir(); use cl_engine_set() with CL_ENGINE_TMPDIR and CL_ENGINE_KEEPTMP instead
...
git-svn: trunk@4416
17 years ago
aCaB
160930d433
test completed, --enable-mempool works again - sorry for the trouble
...
git-svn: trunk@4415
17 years ago
aCaB
bf6f78a4dc
this is a test, --enable-mempool deliberately broken
...
git-svn: trunk@4414
17 years ago
Török Edvin
af84980bec
fix distcheck
...
git-svn: trunk@4406
17 years ago
Tomasz Kojm
ab0d2f054d
libclamav, clamd, clamscan: use cl_engine_set() to control AC settings
...
git-svn: trunk@4404
17 years ago
Török Edvin
0c3db7d345
move cli_rarload.
...
TODO: MEMFUNSONLY should be a separate file!
git-svn: trunk@4400
17 years ago
Tomasz Kojm
b8fe70b3a3
libclamav: drop options parameter in cl_engine_new(); replace cl_engine_dup() with cl_engine_addref()
...
git-svn: trunk@4398
17 years ago
Tomasz Kojm
72d0c053da
libclamav/readdb.c: phishing_done() no longer needs to be called outside cl_engine_free()
...
git-svn: trunk@4397
17 years ago
Török Edvin
4b2400fd7c
fix memory leak (bb #1291 )
...
git-svn: trunk@4395
17 years ago
aCaB
f5a4018bd7
dlinit in cl_init
...
git-svn: trunk@4394
17 years ago
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