Micah Snyder (micasnyd)
485d8dec67
Check test support for check 0.13
...
Tests in libcheck 0.13 must have {} between START_TEST and END_TEST
else it will not compile.
Also replaced all deprecated "fail_" macros with "ck_" macros.
E.g. fail_unless() becomes ck_assert_msg()
The checks_common.h header file provided a couple of macros to
support versions older than 0.9.3. As these older versions are
no longer relevant, I've removed those compatibility macros
entirely.
2020-01-15 08:14:23 -08:00
Micah Snyder
206dbaefe8
Update copyright dates for 2020
2020-01-03 15:44:07 -05:00
Micah Snyder
52cddcbcfd
Updating and cleaning up copyright notices.
2019-10-02 16:08:18 -04:00
Micah Snyder
b3e82e5e61
Replacing libclamav/cltypes.h with clamav-types.h.in, which generates a header clamav-types.h that we install alongside clamav.h.
2019-10-02 16:08:17 -04:00
Micah Snyder
72fd33c8b2
clang-format'd using new .clang-format rules.
2019-10-02 16:08:16 -04:00
Josh Soref
7cd9337a70
Spelling Adjustments ( #30 )
...
* spelling: accessed
* spelling: alignment
* spelling: amalgamated
* spelling: answers
* spelling: another
* spelling: acquisition
* spelling: apitid
* spelling: ascii
* spelling: appending
* spelling: appropriate
* spelling: arbitrary
* spelling: architecture
* spelling: asynchronous
* spelling: attachments
* spelling: argument
* spelling: authenticode
* spelling: because
* spelling: boundary
* spelling: brackets
* spelling: bytecode
* spelling: calculation
* spelling: cannot
* spelling: changes
* spelling: check
* spelling: children
* spelling: codegen
* spelling: commands
* spelling: container
* spelling: concatenated
* spelling: conditions
* spelling: continuous
* spelling: conversions
* spelling: corresponding
* spelling: corrupted
* spelling: coverity
* spelling: crafting
* spelling: daemon
* spelling: definition
* spelling: delivered
* spelling: delivery
* spelling: delimit
* spelling: dependencies
* spelling: dependency
* spelling: detection
* spelling: determine
* spelling: disconnects
* spelling: distributed
* spelling: documentation
* spelling: downgraded
* spelling: downloading
* spelling: endianness
* spelling: entities
* spelling: especially
* spelling: empty
* spelling: expected
* spelling: explicitly
* spelling: existent
* spelling: finished
* spelling: flexibility
* spelling: flexible
* spelling: freshclam
* spelling: functions
* spelling: guarantee
* spelling: hardened
* spelling: headaches
* spelling: heighten
* spelling: improper
* spelling: increment
* spelling: indefinitely
* spelling: independent
* spelling: inaccessible
* spelling: infrastructure
Conflicts:
docs/html/node68.html
* spelling: initializing
* spelling: inited
* spelling: instream
* spelling: installed
* spelling: initialization
* spelling: initialize
* spelling: interface
* spelling: intrinsics
* spelling: interpreter
* spelling: introduced
* spelling: invalid
* spelling: latency
* spelling: lawyers
* spelling: libclamav
* spelling: likelihood
* spelling: loop
* spelling: maximum
* spelling: million
* spelling: milliseconds
* spelling: minimum
* spelling: minzhuan
* spelling: multipart
* spelling: misled
* spelling: modifiers
* spelling: notifying
* spelling: objects
* spelling: occurred
* spelling: occurs
* spelling: occurrences
* spelling: optimization
* spelling: original
* spelling: originated
* spelling: output
* spelling: overridden
* spelling: parenthesis
* spelling: partition
* spelling: performance
* spelling: permission
* spelling: phishing
* spelling: portions
* spelling: positives
* spelling: preceded
* spelling: properties
* spelling: protocol
* spelling: protos
* spelling: quarantine
* spelling: recursive
* spelling: referring
* spelling: reorder
* spelling: reset
* spelling: resources
* spelling: resume
* spelling: retrieval
* spelling: rewrite
* spelling: sanity
* spelling: scheduled
* spelling: search
* spelling: section
* spelling: separator
* spelling: separated
* spelling: specify
* spelling: special
* spelling: statement
* spelling: streams
* spelling: succession
* spelling: suggests
* spelling: superfluous
* spelling: suspicious
* spelling: synonym
* spelling: temporarily
* spelling: testfiles
* spelling: transverse
* spelling: turkish
* spelling: typos
* spelling: unable
* spelling: unexpected
* spelling: unexpectedly
* spelling: unfinished
* spelling: unfortunately
* spelling: uninitialized
* spelling: unlocking
* spelling: unnecessary
* spelling: unpack
* spelling: unrecognized
* spelling: unsupported
* spelling: usable
* spelling: wherever
* spelling: wishlist
* spelling: white
* spelling: infrastructure
* spelling: directories
* spelling: overridden
* spelling: permission
* spelling: yesterday
* spelling: initialization
* spelling: intrinsics
* space adjustment for spelling changes
* minor modifications by klin
2018-02-27 22:00:09 -05:00
Steven Morgan
479ffafe21
bb11349 - patch from Michael Pelletier to fix compilation on HP-UX 11.11.
2016-10-10 16:50:38 -04:00
Mickey Sola
46a35abe56
mass update of copyright headers
2015-09-17 13:41:26 -04:00
Shawn Webb
d9b6b8c757
bb#8993 - Rename the STAT macro to CLAMSTAT to avoid name conflicts on AIX
2013-09-25 16:23:10 -04:00
Shawn Webb
138b5aba59
bb6082 - Fix compiler warnings
2013-02-28 14:39:19 -05:00
David Raynor
9b1af69ed0
clamd: expect ALLMATCHSCAN in unit test
2012-11-28 16:25:54 -05:00
Shawn webb
a2a004df25
BB#3737 - Value too large for specified data type
...
Create compile-time preprocessor defines for switching from calling
stat() to stat64(). Add --enable-stat64 switch in configure script.
2012-07-16 15:36:49 -04:00
Tomasz Kojm
bb08962d85
fix previous commit
2010-11-03 14:30:52 +01:00
Török Edvin
92740b7383
Fix unit tests when run as root (bb #1635 ).
2009-07-15 16:25:27 +03:00
Török Edvin
e9e0833f5c
fix some warning
...
git-svn: trunk@5050
2009-04-20 14:26:53 +00:00
Török Edvin
47d403f899
Fix clamd INSTREAM handling inside IDSESSION (bb #1564 ).
...
git-svn: trunk@5049
2009-04-20 14:26:48 +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
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
39b84970e1
new clamd command: nVERSIONCOMMANDS (bb #1437 ).
...
git-svn: trunk@4922
2009-03-10 17:51:06 +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
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
7bb82e6cec
fix build with old versions of check
...
git-svn: trunk@4863
2009-02-25 19:28:48 +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
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
770701eb44
disable test on BSD
...
git-svn: trunk@4817
2009-02-17 20:41:46 +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
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
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