Browse code

Find some Yaha

git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@304 77e5149b-7576-45b1-b177-96237e5ba77b

Nigel Horne authored on 2004/02/18 19:09:46
Showing 3 changed files
... ...
@@ -1,3 +1,11 @@
1
+Wed Feb 18 10:12:54 GMT 2004 (njh)
2
+----------------------------------
3
+  * libclamav:	Found some occurances of Yaha
4
+	Added debug of number of lines in (encoded) attachment
5
+  * clamav-milter:	clamav-milter now builds on freeBSD 5.2 (wrong logic
6
+  		in including malloc.h)
7
+	clamav-milter no longer allows --force to override TCPwrappers
8
+
1 9
 Wed Feb 18 04:09:56 CET 2004 (tk)
2 10
 ---------------------------------
3 11
   * clamd: temporarily disabled strerror_r (due to a compilation problem on
... ...
@@ -17,6 +17,9 @@
17 17
  *
18 18
  * Change History:
19 19
  * $Log: mbox.c,v $
20
+ * Revision 1.45  2004/02/18 10:07:40  nigelhorne
21
+ * Find some Yaha
22
+ *
20 23
  * Revision 1.44  2004/02/15 08:45:54  nigelhorne
21 24
  * Avoid scanning the same file twice
22 25
  *
... ...
@@ -123,7 +126,7 @@
123 123
  * Compilable under SCO; removed duplicate code with message.c
124 124
  *
125 125
  */
126
-static	char	const	rcsid[] = "$Id: mbox.c,v 1.44 2004/02/15 08:45:54 nigelhorne Exp $";
126
+static	char	const	rcsid[] = "$Id: mbox.c,v 1.45 2004/02/18 10:07:40 nigelhorne Exp $";
127 127
 
128 128
 #if HAVE_CONFIG_H
129 129
 #include "clamav-config.h"
... ...
@@ -644,6 +647,8 @@ parseEmailBody(message *messageIn, blob **blobsIn, int nBlobs, text *textIn, con
644 644
 			 * some duplication of code to be cleaned up
645 645
 			 */
646 646
 			for(multiparts = 0; t_line && (multiparts < MAXALTERNATIVE); multiparts++) {
647
+				int lines = 0;
648
+
647 649
 				aMessage = messages[multiparts] = messageCreate();
648 650
 
649 651
 				cli_dbgmsg("Now read in part %d\n", multiparts);
... ...
@@ -741,11 +746,16 @@ parseEmailBody(message *messageIn, blob **blobsIn, int nBlobs, text *textIn, con
741 741
 						 */
742 742
 						/* t_line = NULL;*/
743 743
 						break;
744
-					} else
744
+					} else {
745 745
 						messageAddLine(aMessage, line);
746
+						lines++;
747
+					}
746 748
 				} while((t_line = t_line->t_next) != NULL);
747 749
 
748 750
 				messageClean(aMessage);
751
+
752
+				cli_dbgmsg("Part %d has %d lines\n",
753
+					multiparts, lines);
749 754
 			}
750 755
 
751 756
 			free((char *)boundary);
... ...
@@ -17,6 +17,9 @@
17 17
  *
18 18
  * Change History:
19 19
  * $Log: message.c,v $
20
+ * Revision 1.33  2004/02/18 10:07:40  nigelhorne
21
+ * Find some Yaha
22
+ *
20 23
  * Revision 1.32  2004/02/17 20:43:50  nigelhorne
21 24
  * Added bounce message
22 25
  *
... ...
@@ -93,7 +96,7 @@
93 93
  * uuencodebegin() no longer static
94 94
  *
95 95
  */
96
-static	char	const	rcsid[] = "$Id: message.c,v 1.32 2004/02/17 20:43:50 nigelhorne Exp $";
96
+static	char	const	rcsid[] = "$Id: message.c,v 1.33 2004/02/18 10:07:40 nigelhorne Exp $";
97 97
 
98 98
 #if HAVE_CONFIG_H
99 99
 #include "clamav-config.h"
... ...
@@ -980,9 +983,9 @@ messageToBlob(const message *m)
980 980
 			 * annoyingly then put plain text after the '='
981 981
 			 * bytes. Sigh
982 982
 			 */
983
-			if(messageGetEncoding(m) == BASE64)
983
+			/*if(messageGetEncoding(m) == BASE64)
984 984
 				if(strchr(line, '='))
985
-					break;
985
+					break;*/
986 986
 
987 987
 		} while((t_line = t_line->t_next) != NULL);
988 988
 	return b;