[Avcheck] Bug in v.0.9

Varadi Gabor varadi@mithrandir.hu
Wed, 2 Oct 2002 22:25:22 +0200


	Hi, all.

	I'm found new bug ? in avcheck v.0.9 if kavdaemon is 4.0.2.2

	Result: no virus message ( infected $2 parameter )

	I'm examine source file and debug :) and examine kavdaemon result.

	This original avcheck wait '\t', but not found :(
	Kavdaemon send ' ' (0x20) and not send '\t' (0x09).


--- avcheck.c	Mon Aug 12 15:56:08 2002
+++ avcheck.c.new	Wed Oct  2 22:08:49 2002
@@ -494,7 +494,7 @@
   p = buf; /* current write pointer */
   n = buf; /* current read pointer */
   for(;;) {
-    if (*n == '\t')
+    if (*n == '\t' || *n == ' ')
       t = ++n;
     else if (*n == '\n' || *n == '\0') {
       if (t && t != n) {

-- 
    [Varadi Gabor]