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
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
17 years ago
aCaB
b583d6ed27
small update
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/mpool@4267 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
aCaB
b94e66c486
HIGLY EXPERIMENTAL memory pool for libclamav
...
The goal is to put an end to memory wasted due to stupid allocators and fragmentation
In the long run mpool libraries will be replaced with better code. For now there just good enough.
This branch is currently under development and totally broken.
If it will ever compile, it'll probably result in random crashes or at least (slightly) higher load times.
The code is also terrible, just don't look.
Do not use except for testing.
git-svn-id: file:///var/lib/svn/clamav-devel/branches/mpool@4266 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Tomasz Kojm
515350689a
bump flevel and revision
...
git-svn: trunk@4259
17 years ago
Tomasz Kojm
c702906433
cosmetics
...
git-svn: trunk@4255
17 years ago
Török Edvin
d9282b9765
properly null-terminate buffer (bb #1223 )
...
git-svn: trunk@4252
17 years ago
Török Edvin
d6d8d45031
fix URL parsing, since we now parse the full URL
...
git-svn: trunk@4248
17 years ago
Török Edvin
a66b62f88b
handle unfinishes string tokens in JS parser
...
git-svn: trunk@4247
17 years ago
Török Edvin
ffe6231f35
scan javascript with type 7 (and implicitly with type 0) too
...
git-svn: trunk@4246
17 years ago
Török Edvin
b105842c5c
when --disable-gcc-vcheck is set, set CFLAGS to O0 and
...
append -broken-compiler to the VERSION (bb #684 )
introduce VERSION_SUFFIX for easier handling, and convert -exp to use it
git-svn: trunk@4239
17 years ago
Török Edvin
ed65443330
fix whitespace
...
git-svn: trunk@4235
17 years ago
aCaB
aa9a0f4b75
partially revert previous
...
git-svn: trunk@4230
17 years ago