May 6, 2009
View 7660b7c

Fix 60 byte/STREAM command memory leak on FreeBSD. (bb #1567, thanks to Jay Deiman <jay*splitstreams.com> and Chris Mikkelson <cmikk*qwest.net> for tracking down the leak!).

Török Edvin authored on 2009/05/06 16:56:28
April 20, 2009
View 52cecde

fix STATS for INSTREAM commands (bb #1565).

Török Edvin authored on 2009/04/20 23:41:20
April 1, 2009
View 0dcb703

clamd/session.c: respect TemporaryDirector in cli_gentempfd()

Tomasz Kojm authored on 2009/04/01 21:01:00
March 13, 2009
View 36e4bc1

stop scanning when client disconnects (bb #1446).

Török Edvin authored on 2009/03/13 22:50:56
View 2accc66

libclamav, clamd, clamscan: replace cl_engine_(set|get) with cl_engine_set_(num|str) and cl_engine_get_(num|str)

Tomasz Kojm authored on 2009/03/13 00:21:36
March 12, 2009
View e68d70e

strerror/strerror_r->cli_strerror which is always thread safe.

Török Edvin authored on 2009/03/12 04:11:09
March 11, 2009
View 39b8497

new clamd command: nVERSIONCOMMANDS (bb #1437).

Török Edvin authored on 2009/03/11 02:51:06
February 23, 2009
View 3dc90d4

stop scanning when client disconnects in multiscan mode (bb #1417).

Török Edvin authored on 2009/02/23 21:35:40
February 19, 2009
View 31d5b62

real fix for BB #1403.

Török Edvin authored on 2009/02/19 04:26:30
View a414efb

revert previous commit, it is the wrong fix.

Török Edvin authored on 2009/02/19 04:11:21
View a1f0c01

Fix wrong use of strerror_r: it doesn't have to use/fill the buffer, it can return a pointer to a static location, as described in the manpage. This can happen on a Linux system with a foreign locale, where the LANG=C messages are returned this way. (BB #1403)

Török Edvin authored on 2009/02/19 04:08:15
February 18, 2009
View 537292a

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.

Török Edvin authored on 2009/02/18 03:04:48
View fb6fe4f

Introduce '$' in logg, it is active when logg_verbose=2, i.e. when Debug yes. Fix leak reported by valgrind.

Török Edvin authored on 2009/02/18 00:59:36
February 17, 2009
View 0378a9a

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.

Török Edvin authored on 2009/02/17 03:27:08
View 4e24a36

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.

Török Edvin authored on 2009/02/17 03:26:58