Commit Graph

30 Commits

Author SHA1 Message Date
aCaB
86d59b249e fix portability issues for fseeko, sysconf(_SC_PAGESIZE), getpagesize() (bb#1658) 2009-07-16 14:21:25 +02:00
Török Edvin
8b2b7201e1 update mpool frag sizes.
git-svn: trunk@5046
2009-04-17 13:45:18 +00:00
Török Edvin
46826baf4f fix mpool_realloc to work with shrinked sizes. This is not yet used anywhere.
git-svn: trunk@5045
2009-04-17 13:45:12 +00:00
Török Edvin
025243f6e1 fix uninitialized value warning.
git-svn: trunk@4921
2009-03-10 14:14:36 +00:00
Török Edvin
1f48ace849 fix distcheck
git-svn: trunk@4917
2009-03-09 11:40:36 +00:00
Török Edvin
eaf2aebdeb avoid unneeded calloc + memcpy.
git-svn: trunk@4911
2009-03-09 11:22:57 +00:00
aCaB
af449e4756 mpool poisonage complete
git-svn: trunk@4900
2009-03-05 15:45:25 +00:00
aCaB
1b802d3c34 adding mpool poisoning, more to come...
git-svn: trunk@4899
2009-03-05 15:39:37 +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
27e28c610e libclamav/mpool.c: fix old free() call in cli_mp_hex2ui()
git-svn: trunk@4592
2009-01-05 18:39:40 +00:00
aCaB
fd856af471 use char* arithmetic
git-svn: trunk@4433
2008-11-18 18:34:54 +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
aCaB
160930d433 test completed, --enable-mempool works again - sorry for the trouble
git-svn: trunk@4415
2008-11-14 21:13:49 +00:00
aCaB
bf6f78a4dc this is a test, --enable-mempool deliberately broken
git-svn: trunk@4414
2008-11-14 21:07:50 +00:00
aCaB
b26d0ef3fd mpool opt
git-svn: trunk@4354
2008-11-08 05:34:25 +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
deb3031222 mempool statistics support
git-svn: trunk@4344
2008-11-06 14:27:27 +00:00
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
2008-11-06 14:27:18 +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
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
2008-11-05 08:25:01 +00:00
aCaB
38e881e3c0 mpool cli_mp_hex2ui
git-svn: trunk@4337
2008-11-04 21:45:49 +00:00
aCaB
d6e1ef1611 mempool deuglification
git-svn: trunk@4333
2008-11-04 19:18:27 +00:00
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
2008-11-04 10:40:31 +00:00
Török Edvin
7866b37c6b mpool debugging
s/USE_MEMPOOL/USE_MPOOL/

git-svn: trunk@4329
2008-11-04 10:40:24 +00:00
aCaB
946bd26646 merge mempool branch
git-svn: trunk@4320
2008-11-01 02:39:00 +00:00
aCaB
0281fb4d9c 32 and 64 bit pools
git-svn-id: file:///var/lib/svn/clamav-devel/branches/mpool@4301 77e5149b-7576-45b1-b177-96237e5ba77b
2008-10-28 22:45:31 +00:00
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
2008-10-28 20:57:54 +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
eb8ab9d28a bloody svn sucks
git-svn-id: file:///var/lib/svn/clamav-devel/branches/mpool@4285 77e5149b-7576-45b1-b177-96237e5ba77b
2008-10-21 23:54:03 +00:00
aCaB
b0c3171680 missing symlinks
git-svn-id: file:///var/lib/svn/clamav-devel/branches/mpool@4270 77e5149b-7576-45b1-b177-96237e5ba77b
2008-10-18 01:05:07 +00:00