Steve Morgan
6ad45a2931
add initial allscan/allmatch mode to libclamav, clamd, clamdscan, and clamscan with unit tests
13 years ago
Tomasz Kojm
e766ee04ae
libclamav/matcher-bm.c: fix error message (bb#2513)
15 years ago
Tomasz Kojm
294558a535
libclamav: minimize header parsing (bb#2065)
15 years ago
Török Edvin
aa47fb3b9e
Improve DB load time (bb #1860 ).
...
Avoid loading signatures that go into an offset-mode BM trie into the prefilter,
since this trie doesn't use the prefilter for BM anyway.
This improves load time, and filter performance.
Also set unroll to 4 in sha256.c, this seems to give best performance.
Overall this is a 16% improvement in DB load time.
15 years ago
Tomasz Kojm
a205da7fd7
libclamav/matcher-bm.c: fix offset check (bb#2032)
15 years ago
Tomasz Kojm
0d926a18fb
fix previous commit
15 years ago
Tomasz Kojm
26f558a6ce
libclamav/matcher-bm.c: properly handle scan boundaries in offset mode (bb#1840)
15 years ago
Tomasz Kojm
9d88686278
libclamav/matcher-bm.c: fix array check (bb#1840)
15 years ago
Tomasz Kojm
fdabe26578
libclamav/matcher-bm.c: only sort correct offsets (bb#1840)
15 years ago
Török Edvin
3e975a6042
missing #include.
16 years ago
Török Edvin
380ae30458
fix prefiltering build.
16 years ago
Török Edvin
02eabc6d1e
Add the rest of the prefiltering glue code.
...
This is still disabled for now (see the & 0).
16 years ago
Tomasz Kojm
424d41d344
libclamav: replace qsort implementation and optimize its common usage (bb#1721)
16 years ago
Tomasz Kojm
e6f5ac5157
libclamav/matcher-bm.c: don't use mpool (bb#1710, #1715 )
16 years ago
Tomasz Kojm
684399dc6a
check if off_min == CLI_OFF_NONE
16 years ago
Tomasz Kojm
6c26e99c59
libclamav: check file sizes for MD5 sigs in all cases
16 years ago
aCaB
49cc1e3c35
s/struct F_MAP/fmap_t/
16 years ago
Tomasz Kojm
6039e6d487
libclamav/matcher-bm.c: fix cli_bm_freeoff() (bb#1710)
16 years ago
Tomasz Kojm
04133ff998
libclamav: new signature blacklisting format (bb#1625)
...
libclamav: allow arbitrary names for .ign/.ign2 files (bb#1683)
16 years ago
Tomasz Kojm
0c190b52f7
libclamav/matcher-bm.c: use mpool in BM's offset mode
16 years ago
Tomasz Kojm
1ffccbda0a
integrate reentrant and non-recursive qsort
16 years ago
Tomasz Kojm
550dc2b321
libclamav/matcher-bm.c: fix uninitialized value warning
16 years ago
Tomasz Kojm
7962075a04
missing return
16 years ago
Tomasz Kojm
6d3c5bec1d
libclamav: use BM matcher in offset mode for PE files larger than 256kB
...
(10% speedup on average; 30-40% for large executables)
16 years ago
Tomasz Kojm
fedd1ac587
fix initial shift
16 years ago
Tomasz Kojm
9b7f6ede5d
fix detection issue in bm_offmode
16 years ago
aCaB
048d76777f
scanners to fmap - hackish
...
peheader to fmap
lacks review + elf + macho
16 years ago
Tomasz Kojm
006f5fe642
libclamav: in bm_offmode only load sigs with non-floating absolute
...
and relative offsets into BM matcher (load other ones into AC) and
use per-file computed offset table to pick up best shifts (not
enabled by default, bb#1300)
16 years ago
Tomasz Kojm
aca9ea82df
libclamav: handle relative offsets with cli_ac_data; fix offset logic
16 years ago
Tomasz Kojm
f28db33f85
libclamav/matcher-bm.c: micro-optimization
16 years ago
Tomasz Kojm
33872a43de
libclamav: improve handling of signature offsets
16 years ago
Tomasz Kojm
f70b93e1b2
libclamav/matcher-bm.c: minor performance improvement (bb#1539)
...
git-svn: trunk@5034
16 years ago
Tomasz Kojm
64b9b982c7
allow offsets for all buffer types
...
git-svn: trunk@5027
16 years ago
Tomasz Kojm
871177cdd9
return codes cleanup (bb#1159)
...
git-svn: trunk@4749
17 years ago
Tomasz Kojm
47d40feb7a
libclamav: use LibTomMath by Tom St Denis instead of libgmp for multiple precision integer arithmetic (bb#1366)
...
git-svn: trunk@4650
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
563582a1ec
fix unit tests when mpool is activated
...
git-svn: trunk@4323
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
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
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
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
2023340a41
update copyrights and stick more files to GPLv2; move and add more credits to the AUTHORS file; add COPYING.BSD
...
git-svn: trunk@3749
17 years ago
aCaB
2455584143
sync to trunk
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/newlimits@3599 77e5149b-7576-45b1-b177-96237e5ba77b
18 years ago
Tomasz Kojm
4addba22e4
ndb sigs: add new target type (7) for ASCII files; handle sigs for targets 2..7 with A-C only
...
git-svn: trunk@3570
18 years ago
Tomasz Kojm
3ae7b3aca6
on Solaris/Intel bm_shift could be improperly allocated (bb#773)
...
git-svn: trunk@3554
18 years ago
aCaB
1f2ebf0cc5
fix null dereference when cli_bm_scanbuff is called with an empty fp db
...
git-svn: trunk@3460
18 years ago
Tomasz Kojm
ab1db3b3f1
minor code cleanup; load balance bm_suffix
...
git-svn: trunk@3360
18 years ago
Tomasz Kojm
bb34cb31fe
update some copyrights and stick to GPL v2
...
git-svn: trunk@3003
18 years ago
Tomasz Kojm
bedc58dee1
make some cleanups and add support for nibble matching
...
git-svn: trunk@2992
18 years ago
Sven Strickroth
a99111f050
remove old CVS-stuff and make the repository look more like SVN
...
git-svn: trunk@2755
19 years ago