Török Edvin
4b93f2b633
check for mallinfo availability (bb #1445 ).
...
git-svn: trunk@5001
2009-04-01 17:51:44 +00:00
Török Edvin
b6dab5a7d8
fix warning
...
git-svn: trunk@4975
2009-03-22 17:18:58 +00:00
Török Edvin
62b7686d21
fix trailing bytes in base64 decoding (bb #1388 , thanks Thiyaga <mthiyaga*corp.untd.com>)
...
git-svn: trunk@4974
2009-03-22 16:55:41 +00:00
Török Edvin
3e552ab69b
fix warning
...
git-svn: trunk@4965
2009-03-20 18:10:40 +00:00
Török Edvin
9e81ab6f70
put back ifndef C_BSD in unit test
...
git-svn: trunk@4950
2009-03-14 20:45:36 +00:00
Török Edvin
e4565ad5df
have to set conn queue length in test.
...
git-svn: trunk@4949
2009-03-14 19:23:04 +00:00
Török Edvin
7ff6ec039c
better fix for bb #1446 , try not to get confused by half-shut sockets (bb #1441 ).
...
git-svn: trunk@4947
2009-03-14 15:03:15 +00:00
Török Edvin
a3d029b938
make use of hostkey prefix entries
...
git-svn: trunk@4929
2009-03-11 20:06:35 +00:00
Török Edvin
e68d70e7e0
strerror/strerror_r->cli_strerror which is always thread safe.
...
git-svn: trunk@4927
2009-03-11 19:11:09 +00:00
Török Edvin
9f11978c28
add more ifdefs for old check version.
...
git-svn: trunk@4924
2009-03-10 18:53:38 +00:00
Török Edvin
39b84970e1
new clamd command: nVERSIONCOMMANDS (bb #1437 ).
...
git-svn: trunk@4922
2009-03-10 17:51:06 +00:00
Török Edvin
e828353b83
allow for hash prefixes.
...
git-svn: trunk@4916
2009-03-09 11:23:21 +00:00
Török Edvin
31ea989c4c
fix unit-test
...
git-svn: trunk@4914
2009-03-09 11:23:12 +00:00
Török Edvin
b0e57898e8
fix FILDES and make check on NetBSD. (bb #1411 ).
...
git-svn: trunk@4905
2009-03-06 15:19:59 +00:00
Török Edvin
4b52f390e5
fix make check. Buildbot didn't detect compile failure in make check.
...
git-svn: trunk@4902
2009-03-06 09:09:06 +00:00
aCaB
5348fa8d28
bb#1443
...
please don't touch the build stuff for a coupel of hours so i can easily revert this commit
git-svn: trunk@4884
2009-03-02 16:39:54 +00:00
Török Edvin
47b8b6c257
Fix make check when run as root. (bb #1431 ).
...
git-svn: trunk@4879
2009-03-01 10:40:00 +00:00
Török Edvin
c2b4740ceb
disable duma tests by default, they time out even on fast machines.
...
git-svn: trunk@4866
2009-02-25 20:41:16 +00:00
Török Edvin
7bb82e6cec
fix build with old versions of check
...
git-svn: trunk@4863
2009-02-25 19:28:48 +00:00
Török Edvin
a7d064d825
fix duma timeouts (thanks Nigel!).
...
git-svn: trunk@4859
2009-02-24 21:27:38 +00:00
Török Edvin
5dddbcb787
fix electric-fence return code checking (bb #1385 ).
...
git-svn: trunk@4851
2009-02-24 09:59:16 +00:00
Török Edvin
d4e1cb474f
fix match with root regex (bb #1421 ).
...
git-svn: trunk@4848
2009-02-23 12:35:45 +00:00
Török Edvin
8db0a3463d
clamdtop moved to toplevel + manpage.
...
git-svn: trunk@4846
2009-02-23 12:35:34 +00:00
Török Edvin
73ba72eb7d
Fix timeout/run-out-of-fd bug in unit-tests (bb #1412 )
...
git-svn: trunk@4841
2009-02-20 13:22:02 +00:00
Török Edvin
a1c9ad2cf3
fix distcheck.
...
git-svn: trunk@4836
2009-02-19 08:50:04 +00:00
Török Edvin
7e32c99e10
improve URL handling
...
git-svn: trunk@4831
2009-02-18 20:27:25 +00:00
Török Edvin
4d26118b95
In single INSTREAM mode, remove FD from polled set (BB #1410 )
...
Fix testcase, INSTREAM should say UNKNOWN COMMAND in old mode and close conn, sending
anything after it will likely result in a broken pipe.(BB #1407 )
git-svn: trunk@4826
2009-02-18 18:37:57 +00:00
Török Edvin
4e46d65d39
use sha256 instead of md5 in phishcheck.
...
move sha256 to libclamav.
add more tests.
git-svn: trunk@4822
2009-02-18 14:54:16 +00:00
Török Edvin
770701eb44
disable test on BSD
...
git-svn: trunk@4817
2009-02-17 20:41:46 +00:00
Török Edvin
b82eea8de0
signals may not wake a poll(), so make sure thread wakes up (BB #1400 ).
...
git-svn: trunk@4816
2009-02-17 20:05:35 +00:00
Török Edvin
904c4258c6
add missing header
...
git-svn: trunk@4814
2009-02-17 19:40:22 +00:00
Török Edvin
1d60f70d03
git-* commands are gone, use 'git svn'.
...
correct include position for fdpassing.h
git-svn: trunk@4813
2009-02-17 19:40:17 +00:00
Török Edvin
537292a773
Reject new commands sent as new-style commands to avoid confusion.
...
This means that IDSESSION/INSTREAM must be sent as nIDSESSION\n or zIDSESSION\0,
ditto for INSTREAM.
Adjust testcases accordingly.
Old commands are still accepted when sent without delimiter.
git-svn: trunk@4811
2009-02-17 18:04:48 +00:00
Török Edvin
e114b109c4
fix use of uninitialized value.
...
add test for STREAM.
fix missing closing pragmas.
git-svn: trunk@4810
2009-02-17 17:35:31 +00:00
Török Edvin
b337768f27
another warning
...
git-svn: trunk@4809
2009-02-17 16:07:58 +00:00
Török Edvin
fb6fe4f5d1
Introduce '$' in logg, it is active when logg_verbose=2, i.e. when Debug yes.
...
Fix leak reported by valgrind.
git-svn: trunk@4806
2009-02-17 15:59:36 +00:00
Török Edvin
c5355aedbd
make sending ancillary data at wrong time a protocol error.
...
change testcase accordingly.
git-svn: trunk@4805
2009-02-17 15:59:31 +00:00
Török Edvin
5f6edb222c
ReadTimeout handling, and introduce CommandReadTimeout.
...
git-svn: trunk@4803
2009-02-17 15:59:21 +00:00
Török Edvin
456e31a3cb
fix typo.
...
add another stress test.
Don't leak file descriptors.
Fix IDSESSION delimiter handling.
git-svn: trunk@4800
2009-02-16 21:27:22 +00:00
Török Edvin
0378a9ab77
introduce timeouts for send(), this is needed for IDSESSION to work reliably,
...
since a buggy client implementation may get stuck in send(), and then clamd
gets stuck in send() -> deadlock. To avoid this we need nonblocking sockets, and
(low) timeouts on send.
Add more tests for clamd protocol, including a stress test for IDSESSION.
git-svn: trunk@4798
2009-02-16 18:27:08 +00:00
Török Edvin
ec86878226
test for FILDES
...
git-svn: trunk@4797
2009-02-16 18:27:03 +00:00
Török Edvin
4e24a36173
add more unit tests.
...
Make handling of old-style commands compatible with old clamd: if they have a \n
that will delimit the command.
If multiscan of a single file encounters errors, don't reply OK too.
git-svn: trunk@4796
2009-02-16 18:26:58 +00:00
Török Edvin
6870ebe176
mdprintf was also taking %f and %l, and they have different size than int.
...
Make the ARGLEN get the correct vaarg types, otherwise it was popping off the
stack an item of the wrong size!
git-svn: trunk@4784
2009-02-13 16:52:15 +00:00
Török Edvin
f011ae3e39
increase timeout when run under valgrind/efence/duma
...
git-svn: trunk@4780
2009-02-13 11:52:47 +00:00
Török Edvin
ce6614cc7b
more suppressions
...
git-svn: trunk@4779
2009-02-13 11:36:14 +00:00
Török Edvin
666cef6e66
add suppression for progexit set in signal handler
...
git-svn: trunk@4778
2009-02-13 11:20:54 +00:00
Török Edvin
8cad8e8323
fix distcheck errors
...
git-svn: trunk@4764
2009-02-12 18:25:17 +00:00
Török Edvin
05a213b850
add another missing file
...
git-svn: trunk@4763
2009-02-12 18:22:19 +00:00
Török Edvin
357f2f4e04
add missing file
...
git-svn: trunk@4760
2009-02-12 17:40:25 +00:00
Török Edvin
3e2b50465b
add some unit tests for the new clamd protocol
...
git-svn: trunk@4757
2009-02-12 17:25:50 +00:00