Török Edvin
dd15bc42f5
fix "leak". It was a valgrind false-positive because it couldn't see the
...
pointer.
git-svn: trunk@4402
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
395fb661e3
fix some possible memleaks
...
git-svn: trunk@4391
17 years ago
Török Edvin
15adbc849a
update unit tests to new API.
...
Initialization order changed, make sure stats_tls_key is initialized.
git-svn: trunk@4387
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
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
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
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
764f76c841
* clamd/thrmgr.c (thrmgr_printstats, IDLE_TASK): add comments
...
* contrib/clamdtop/TODO: more TODO items
git-svn: trunk@4328
17 years ago
Török Edvin
64cb380717
fix whitespace
...
git-svn: trunk@4327
17 years ago
Török Edvin
ee7ac1fc63
fix mixed statements (bb #1269 )
...
git-svn: trunk@4326
17 years ago
Török Edvin
6bdb35ea6a
use mdprintf instead of fdopen on socket (bb #1270 ) (thanks to Gianluigi Tiesi <sherpya*netfarm.it>)
...
git-svn: trunk@4325
17 years ago
Török Edvin
aa22174b30
new command STATS
...
new top-like tool using ncurses: clamdtop
it shows what clamd is currently scanning (and since how long),
including which file(s) multiscan is working on currently,
how many items it has in the queue (and since how long they are waiting),
how many active/idle threads it has,
memory usage statistics,
can monitor local or remote clamd
git-svn: trunk@4324
17 years ago
Török Edvin
7174d94034
fix leak on rare error path (bb #1254 )
...
git-svn: trunk@4290
17 years ago
Tomasz Kojm
c702906433
cosmetics
...
git-svn: trunk@4255
17 years ago
Tomasz Kojm
b1fa154b64
clamd/server.h: drop dead code (bb#1231)
...
git-svn: trunk@4254
17 years ago
Tomasz Kojm
04fa4e9d01
shared/options.c: handle obsolete options in cmdline parser (bb#1213)
...
git-svn: trunk@4236
17 years ago
Török Edvin
ae685a75c1
link to libclamunrar_iface explicitly to
...
allow non-rpath builds to work. (bb #1203 )
Thanks to James Ralston <ralston*pobox.com>
git-svn: trunk@4224
17 years ago
Török Edvin
85398f3ed8
fix overlapping arguments in disasm/debug (bb #1150 )
...
move copt out of main, so that valgrind is not reporting false leaks
make distcheck works now
git-svn: trunk@4193
17 years ago
Török Edvin
1642ffba29
fix some races in check_clamd.sh
...
add more valgrind suppressions
better log parsing for valgrind
add mutex to prevent multiple simultaneous forks (bb #1187 )
git-svn: trunk@4182
17 years ago
Török Edvin
b8edbb880d
clamd/thrmgr.c: fix valgrind warning (bb #1184 )
...
unit_tests: add more valgrind tests, add a reload and a multiscan test (bb #1092 )
git-svn: trunk@4175
17 years ago
Török Edvin
15d67313c4
allow 'make check' to work even if check is not installed
...
by skipping checks that require it. (bb #1157 )
if configure is not able to find check, you can use
--with-libcheck-prefix, instead of CHECK_CFLAGS and
CHECK_LIBS.
remove accidental AC_DEFINE GETHOSTBYNAME_R_6 from last commit.
git-svn: trunk@4172
17 years ago
aCaB
6d48ea885a
update libtool - bb#1162
...
git-svn: trunk@4170
17 years ago
Tomasz Kojm
edc677c179
clamd/server-th.c: fix handling of pthread_attr_init/pthread_create in ClamukoScanOnAccess (bb#1169)
...
git-svn: trunk@4169
17 years ago
Török Edvin
2d75763208
revert last commit, it breaks bzip2 detection in /usr/local
...
git-svn: trunk@4163
17 years ago
Török Edvin
8179270b95
if pkg-config cannot find check look in standard places for check
...
(such as /usr/local/lib)
git-svn: trunk@4162
17 years ago
Török Edvin
4a40b66cf0
replace AC_FUNC_MMAP: check only for MAP_PRIVATE and not MAP_FIXED (bb #1140 ) HP-UX: zlib in non-standard path, LIBS got set to -lz, but -L was missing, just restore LIBS and don't touch it
...
git-svn: trunk@4145
17 years ago
Tomasz Kojm
6670d61d4b
drop support for Cygwin (due to broken ClamAV builds)
...
git-svn: trunk@4143
17 years ago
Török Edvin
7959343dc7
allow make distcheck to succeed (bb #1142 )
...
fix some more warnings
filter -Werror in clamav-milter.c
git-svn: trunk@4141
17 years ago
Török Edvin
e357da7b90
more leak fixes (bb #1141 )
...
git-svn: trunk@4127
17 years ago
Tomasz Kojm
1bf0d5a864
clamd/clamd.c: return an error (instead of a warning) if AllowSupplementaryGroups is enabled but initgroups() not available
...
git-svn: trunk@4120
17 years ago
Tomasz Kojm
3eba9d8363
clamd/server-th.c: add missing proto for cli_initengine() (bb#1136)
...
git-svn: trunk@4116
17 years ago
aCaB
55144c4766
work around non reentrant lresolv
...
git-svn: trunk@4087
17 years ago
Török Edvin
dfc0c031cb
if there is a version.h.static use that instead of output from svnversion
...
Makefile portability fixes
fix assert failure
add lcov to top level makefile
cleanup after lcov when you run make clean (bb #1112 )
fix parsing of [^.] character class
fix parsing of [r-t]
fix handling of @ for URL hashes
fix handling of &# inside URLs
drop some dead code
more unit tests for str
portability fixes
git-svn: trunk@4078
17 years ago
Török Edvin
add738d28c
portability fixes
...
if there is a version.h.static use that instead of output from svnversion
use get_version(), tools outside libclamav shouldn't rely on libclamav version
exception: clamconf itself needs both, and the milter shows both
git-svn: trunk@4076
17 years ago
Török Edvin
04f9bedf4b
use SVN revision in version info
...
TODO: replace every remaining use of VERSION with cl_retver()
git-svn: trunk@4070
17 years ago
Török Edvin
4a0bd44290
Multiscan queues a lot of scan tasks. If thread_idle wasn't zero when multiscan
...
started queueing, it will only spawn at most one thread, and keep queueing
without spawning more threads (because threads_idle now non-zero), but the idle
thread doesn't get a chance to pick up the tasks.
Fix this by testing whether we have enough idle threads to pick up the items in
the work queue. If there aren't then spawn some more until max limit is reached,
or we have enough idle threads to handle all tasks in the queue.
git-svn: trunk@4066
17 years ago
Török Edvin
9a22341892
apply patch from bb #885
...
clamd is unusable on OpenBSD and some other BSD versions without it.
It has a C_BSD wrapper around it so it shouldn't affect anything else.
git-svn: trunk@4060
17 years ago
aCaB
8cc8f8100f
missing include in clamd.c
...
git-svn: trunk@4059
17 years ago
Tomasz Kojm
b023c36d4b
libclamav: add support for loading specific PUA categories (bb#939)
...
clamd: new options ExcludePUA and IncludePUA
clamscan: new switches --exclude-pua and --include-pua
git-svn: trunk@4046
17 years ago
Török Edvin
1eb943f3fc
use automake for a basic check that the installed programs work.
...
currently only tests clamscan and sigtool
database: 0 sized .cvd files were still installed, because exit 0 didn't stop
the entire rule. fixed
git-svn: trunk@4042
17 years ago
Török Edvin
7f0d1148d6
clamd, clamscan, libclamav: new option HeuristicScanPrecedence (bb #649 )
...
docs/: update docs for HeuristicScanPrecedence and ScanPartialMessages
unit_tests/: add test for HeuristicScanPrecedence
git-svn: trunk@4037
17 years ago
Török Edvin
751f84706b
avoid calling non-async-signal-safe functions between fork()
...
and exec() (bb #889 )
unit_tests: add unit-test for virusaction
git-svn: trunk@4034
17 years ago
Tomasz Kojm
9a03413e9b
clamscan, clamav-milter: catch and ignore SIGXFSZ; display warning if system limits are too restrictive (bb#994)
...
git-svn: trunk@4033
17 years ago
Török Edvin
4270f93bcc
(bb #913 , #916 )
...
17 years ago
Tomasz Kojm
5a66732fdc
clamd: revert patch from bb#1028 (bb#1113)
...
git-svn: trunk@4029
17 years ago
aCaB
5dcb8a7a81
bb#384
...
git-svn: trunk@4006
17 years ago